forked from PoliEcho-holding-org/kern
Modified font
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user