diff options
author | Christian Cunningham <cc@localhost> | 2022-04-06 16:39:28 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-04-06 16:39:28 -0700 |
commit | 97615d74bde3dd6ce3e746f1b3256c263fe24539 (patch) | |
tree | acb2a78e203cba7321d679d1ef305e0f48fdcfd0 /kernel/graphics | |
parent | a61924d3b64b4b80f8784008501975d650f7460f (diff) |
Different sized fonts
Diffstat (limited to 'kernel/graphics')
-rw-r--r-- | kernel/graphics/lfb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/graphics/lfb.c b/kernel/graphics/lfb.c index e76fccb..9f87b6f 100644 --- a/kernel/graphics/lfb.c +++ b/kernel/graphics/lfb.c @@ -124,7 +124,7 @@ void draw_cbyte(unsigned int lx, unsigned int ly, unsigned char letter, unsigned } for(y=0; y<GLYPH_Y; y++) { for(x=0; x<GLYPH_X; x++) { - if((0x80 >> ((GLYPH_X-1)-x)) & glyphs[y+GLYPH_Y*(ltr)]) { + if((0x80 >> ((GLYPH_X-1)-x)) & font[ltr][y]) { *((unsigned int*)ptr) = gisrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c; } else { *((unsigned int*)ptr) = 0x000000; @@ -148,7 +148,7 @@ void draw_cletter(unsigned int lx, unsigned int ly, unsigned char letter, unsign unsigned char ltr = letter & 0x7F; for(y=0; y<GLYPH_Y; y++) { for(x=0; x<GLYPH_X; x++) { - if((0x80 >> ((GLYPH_X-1)-x)) & glyphs[y+GLYPH_Y*(ltr)]) { + if((0x80 >> ((GLYPH_X-1)-x)) & font[ltr][y]) { *((unsigned int*)ptr) = gisrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c; } else { *((unsigned int*)ptr) = 0x000000; |