Fixed pixel row addressing with fb_scanline

This commit is contained in:
Thomas Oltmann 2025-03-08 21:28:52 +01:00
parent 7e0a775269
commit ba11121291

View file

@ -194,7 +194,7 @@ void visual_putc(char c)
unsigned char *glyph = font_get_glyph(c);
offs = ((text_cursor_x * (font->width+1) + text_cursor_y * bootboot.fb_width * (font->height+1)) * 4);
offs = 4 * text_cursor_x * (font->width+1) + text_cursor_y * (font->height+1) * bootboot.fb_scanline;
for (int y = 0; y < font->height; y++) {
line = offs;