Compare commits

...

2 Commits

Author SHA1 Message Date
db596a9212 fix: putchat: use right index 2024-12-11 21:03:29 +01:00
99e2d7053b fix: tootls: font_converter: remove extra bracket 2024-12-11 20:55:41 +01:00
3 changed files with 1006 additions and 922 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); */

View File

@ -59,7 +59,7 @@ for charactere in characteres:
.bitmap = NULL,
}},\
"""
string += "\n}};"
string += "\n};"
if not os.path.exists("./headers/fonts"):
os.makedirs("./headers/fonts")