From 599af82d6d264c84118cd9407dd03323f0a1cb38 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 23 Dec 2021 14:35:38 -0800 Subject: Added Graphics Initialization Output --- src/graphics/lfb.c | 3 ++- src/graphics/lfb.h | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/graphics') diff --git a/src/graphics/lfb.c b/src/graphics/lfb.c index 5e307f4..5494dde 100644 --- a/src/graphics/lfb.c +++ b/src/graphics/lfb.c @@ -4,6 +4,7 @@ #include "../graphics/homer.h" #include "../graphics/glyphs.h" +#define GRAPHICS_LFB_C unsigned int width, height, pitch, isrgb; /* dimensions and channel order */ unsigned char *lfb; /* raw frame buffer address */ @@ -79,7 +80,7 @@ void lfb_showpicture() unsigned char *ptr=lfb; char *data=homer_data, pixel[4]; - ptr += (height-homer_height)/2*pitch + (width-homer_width)*2; + ptr = lfb + (height-homer_height)*pitch + (width-homer_width)*4; for(y=0;y