projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
visual studio project for the SDL backend
[dosdemo]
/
src
/
demo.c
diff --git
a/src/demo.c
b/src/demo.c
index
fe0c2c4
..
a9611f6
100644
(file)
--- a/
src/demo.c
+++ b/
src/demo.c
@@
-3,6
+3,7
@@
#include <string.h>
#include <math.h>
#include <errno.h>
#include <string.h>
#include <math.h>
#include <errno.h>
+#include <limits.h>
#include "demo.h"
#include "screen.h"
#include "demo.h"
#include "screen.h"
@@
-21,6
+22,8
@@
int demo_init(int argc, char **argv)
}
scr_change(scr_lookup("tunnel"), 4000);
}
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;
}
return 0;
}