From 9bc94963aefcb5028c3529ff59c974e48d814690 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 23 Dec 2021 21:42:32 -0800 Subject: Intro USB --- src/graphics/lfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphics') diff --git a/src/graphics/lfb.c b/src/graphics/lfb.c index a693135..6aa6012 100644 --- a/src/graphics/lfb.c +++ b/src/graphics/lfb.c @@ -121,7 +121,7 @@ void draw_cletter(unsigned char lx, unsigned char ly, unsigned char letter, unsi unsigned char ltr = letter & 0x7F; for(y=0; y> ((GLYPH_X-1)-x)) & glyphs[y+GLYPH_Y*(ltr)]) { + if((0x80 >> ((GLYPH_X-1)-x)) & glyphs[y+GLYPH_Y*(ltr)]) { *((unsigned int*)ptr) = isrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c; } else { *((unsigned int*)ptr) = 0x000000; -- cgit v1.2.1