diff options
author | Christian Cunningham <cc@localhost> | 2022-01-05 14:01:29 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-05 14:01:29 -0800 |
commit | 3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (patch) | |
tree | 9d9a6f92f9d74001e969d23ea79ad26f6227fea2 /src/graphics/lfb.c | |
parent | f3ea4cd0c22f351d8dfffb0e937194c4b526b665 (diff) |
Cleaned up/ Standardized
Diffstat (limited to 'src/graphics/lfb.c')
-rw-r--r-- | src/graphics/lfb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/graphics/lfb.c b/src/graphics/lfb.c index 54bc71c..ffc27de 100644 --- a/src/graphics/lfb.c +++ b/src/graphics/lfb.c @@ -1,6 +1,6 @@ #include "../drivers/uart.h" #include "../graphics/glyphs.h" -#include "../graphics/homer.h" +#include "../graphics/philosopher_toad.h" #include "../graphics/lfb.h" #include "../graphics/mbox.h" @@ -90,18 +90,18 @@ void lfb_showpicture(void) clear_screen(); unsigned int x,y; unsigned char *ptr=lfb; - char *data=homer_data, pixel[4]; + char *data=toad_data, pixel[4]; - ptr = lfb + (height-homer_height)*pitch + (width-homer_width)*4; - for(y=0;y<homer_height;y++) { - for(x=0;x<homer_width;x++) { + ptr = lfb + (height-toad_height)*pitch + (width-toad_width)*4; + for(y=0;y<toad_height;y++) { + for(x=0;x<toad_width;x++) { HEADER_PIXEL(data, pixel); // the image is in RGB. So if we have an RGB framebuffer, we can copy the pixels // directly, but for BGR we must swap R (pixel[0]) and B (pixel[2]) channels. *((unsigned int*)ptr)=isrgb ? *((unsigned int *)&pixel) : (unsigned int)(pixel[0]<<16 | pixel[1]<<8 | pixel[2]); ptr+=4; } - ptr+=pitch-homer_width*4; + ptr+=pitch-toad_width*4; } } |