visual studio project for the SDL backend
[dosdemo] / src / demo.c
index fe0c2c4..a9611f6 100644 (file)
@@ -3,6 +3,7 @@
 #include <string.h>
 #include <math.h>
 #include <errno.h>
+#include <limits.h>
 #include "demo.h"
 #include "screen.h"
 
@@ -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;
 }