Skip to content

Commit 8122923

Browse files
committed
Fix the DrawText Y positioning
1 parent fe9dd73 commit 8122923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raylib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class RaylibJs {
172172

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

0 commit comments

Comments
 (0)