Fixed pixel row addressing with fb_scanline
This commit is contained in:
parent
7e0a775269
commit
ba11121291
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue