From 97615d74bde3dd6ce3e746f1b3256c263fe24539 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 6 Apr 2022 16:39:28 -0700 Subject: Different sized fonts --- kernel/graphics/lfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel') 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_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_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; -- cgit v1.2.1