projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bugs, added progress bar, and more
[dosdemo]
/
src
/
demo.c
diff --git
a/src/demo.c
b/src/demo.c
index
8ad984c
..
77c3e80
100644
(file)
--- 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;
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;
int demo_init(int argc, char **argv)
{
struct screen *scr;
@@
-45,6
+48,12
@@
int demo_init(int argc, char **argv)
return -1;
}
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();
con_init();
initFpsFonts();