X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdemo.c;h=77c3e807c352faca0011cba70e08edec2dd7f8c0;hb=7cffbf057545fb303ad8f53e432ef42f7708e16d;hp=8ad984cd0a9c187e891b5640c87c18702da0cba0;hpb=c912e59b898fe1ac461a1468e4a2e1937de286d7;p=dosdemo diff --git a/src/demo.c b/src/demo.c index 8ad984c..77c3e80 100644 --- a/src/demo.c +++ b/src/demo.c @@ -30,6 +30,9 @@ float sball_matrix[] = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}; static unsigned long nframes; static int con_active; +extern uint16_t loading_pixels[]; /* data.asm */ + + int demo_init(int argc, char **argv) { struct screen *scr; @@ -45,6 +48,12 @@ int demo_init(int argc, char **argv) return -1; } + /* reuse the loading image as our back buffer. + * adjust fb_pixels to leave 4 pixels guard band top/bottom. We have enough + * space since the loading image is 8 pixels taller. + */ + fb_pixels = loading_pixels + 320 * 4; + con_init(); initFpsFonts();