X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fgrise.c;fp=src%2Fgrise.c;h=2aaf9253628bf70a340e517fdeed428e0542483f;hp=50d80ced8e04266f07ca1d75f46710f09e5dc157;hb=5d9ec41cc62ebddf5d406511714e561e88884987;hpb=f48bebd0c67210cd8b56e7d491b4942971e34ed1 diff --git a/src/grise.c b/src/grise.c index 50d80ce..2aaf925 100644 --- 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 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; @@ -178,6 +178,8 @@ static void draw(void) src += BB_SIZE; dst += fb_width; } + + swap_buffers(fb_pixels); } /* src and dst can be the same */