We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0947e commit b07b158Copy full SHA for b07b158
1 file changed
libogc/console.c
@@ -247,8 +247,10 @@ static void __console_drawc(int c)
247
ptr = __console_get_cursor_start_ptr();
248
249
pbits = &con->font.gfx[c * FONT_YSIZE];
250
- // con_stride is in bytes, but we increment ptr which isn't a byte pointer
251
- // and the work in the loop already increments ptr 4 times before needing to go to the next row
+ // con_stride is in bytes, but we increment ptr which is an int pointer
+ // -> we have to divide to not skip over rows we want to write to
252
+ // the work in the loop already writes 4 ints before going to the next row
253
+ // -> subtract that 4 here, so nextline can be directly added to ptr later
254
nextline = con->con_stride/sizeof(*ptr) - 4;
255
256
fgcolor = currentConsole->fg;
0 commit comments