#include <string.h>
#include <math.h>
#include <errno.h>
+#include <limits.h>
#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;
}
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;
}