Modified font

This commit is contained in:
2024-04-26 09:51:25 +02:00
parent 753c983c9d
commit 886966eff5
2 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -26,10 +26,10 @@ void setupScreen() {
}
// TODO: Probably make the font bigger in a better way, but this works for now
void putcAt(char c, uint32_t x, uint32_t y) {
void putcAt(unsigned char c, uint32_t x, uint32_t y) {
uint32_t offset = (WIDTH * y * 16 + x * 8) * 2;
char* bitmap = &font[(c-1) * 16];
char* bitmap = &font[((c % 128) - 1) * 16];
for (uint8_t i = 0; i < 32; i++) { // Rows (16*2 since we draw font 2x larger)
char bitmapRow = bitmap[i/2]; // Idk if this should work, because i'm scared of division