fix: putchat: use right index
This commit is contained in:
parent
99e2d7053b
commit
db596a9212
File diff suppressed because it is too large
Load Diff
@ -94,7 +94,7 @@ void terminal_putentryat(char c, uint32_t color, size_t x, size_t y)
|
|||||||
char *glyph = node.bitmap;
|
char *glyph = node.bitmap;
|
||||||
for (size_t cy = 0; cy < node.height; cy++)
|
for (size_t cy = 0; cy < node.height; cy++)
|
||||||
for (size_t cx = 0; cx < node.width; cx++)
|
for (size_t cx = 0; cx < node.width; cx++)
|
||||||
if (glyph[cy + node.width + cx] == '#')
|
if (glyph[cy * node.width + cx] == '#')
|
||||||
put_pixel(color, x + cx, y + cy);
|
put_pixel(color, x + cx, y + cy);
|
||||||
/* const size_t index = y * VGA_WIDTH + x; */
|
/* const size_t index = y * VGA_WIDTH + x; */
|
||||||
/* TERM_BUF[index] = vga_entry(c, color); */
|
/* TERM_BUF[index] = vga_entry(c, color); */
|
||||||
|
Loading…
Reference in New Issue
Block a user