X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=inline;f=src%2Fdemo.c;h=a9611f61ad49360233b5605e545ff59dc70014fe;hb=21b1860345b18464e3e688ca1e622177f962d497;hp=4bd02c7405d039f3ee2844d05955e58c0267f124;hpb=77c1d84c258ca14e1bba06ab711426668ff24290;p=dosdemo diff --git a/src/demo.c b/src/demo.c index 4bd02c7..a9611f6 100644 --- a/src/demo.c +++ b/src/demo.c @@ -3,13 +3,14 @@ #include #include #include +#include #include "demo.h" #include "screen.h" int fb_width = 320; int fb_height = 240; int fb_bpp = 16; -unsigned char *fb_pixels; +void *fb_pixels; unsigned long time_msec; static unsigned long nframes; @@ -21,6 +22,8 @@ int demo_init(int argc, char **argv) } scr_change(scr_lookup("tunnel"), 4000); + /* clear the framebuffer at least once */ + memset(fb_pixels, 0, fb_width * fb_height * fb_bpp / CHAR_BIT); return 0; }