Skip to content

Commit

Permalink
Fix the DrawText Y positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Feb 17, 2024
1 parent fe9dd73 commit 8122923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raylib.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class RaylibJs {

const lines = text.split('\n');
for (var i = 0; i < lines.length; i++) {
this.ctx.fillText(lines[i], posX, posY + (i * fontSize));
this.ctx.fillText(lines[i], posX, posY + fontSize + (i * fontSize));
}
}

Expand Down

0 comments on commit 8122923

Please sign in to comment.