fix: putchat: use right index

This commit is contained in:
Starnakin 2024-12-11 21:03:29 +01:00
parent 99e2d7053b
commit db596a9212
2 changed files with 1005 additions and 921 deletions

File diff suppressed because it is too large Load Diff

View File

@ -94,7 +94,7 @@ void terminal_putentryat(char c, uint32_t color, size_t x, size_t y)
char *glyph = node.bitmap;
for (size_t cy = 0; cy < node.height; cy++)
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);
/* const size_t index = y * VGA_WIDTH + x; */
/* TERM_BUF[index] = vga_entry(c, color); */