projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added two new global pointers in demo.h: vmem_back and vmem_front, and
[dosdemo]
/
src
/
grise.c
diff --git
a/src/grise.c
b/src/grise.c
index
50d80ce
..
2aaf925
100644
(file)
--- a/
src/grise.c
+++ b/
src/grise.c
@@
-42,8
+42,8
@@
static void updateScrollTables(float dt);
static void rleEncode(unsigned char *pixels, unsigned int w, unsigned int h);
static unsigned short *background = 0;
static void rleEncode(unsigned char *pixels, unsigned int w, unsigned int h);
static unsigned short *background = 0;
-static unsigned int backgroundW = 0;
-static unsigned int backgroundH = 0;
+static int backgroundW = 0;
+static int backgroundH = 0;
static unsigned int lastFrameTime = 0;
static float lastFrameDuration = 0.0f;
static unsigned int lastFrameTime = 0;
static float lastFrameDuration = 0.0f;
@@
-178,6
+178,8
@@
static void draw(void)
src += BB_SIZE;
dst += fb_width;
}
src += BB_SIZE;
dst += fb_width;
}
+
+ swap_buffers(fb_pixels);
}
/* src and dst can be the same */
}
/* src and dst can be the same */