added two new global pointers in demo.h: vmem_back and vmem_front, and
[dosdemo] / src / sdl / main.c
index b3ff905..e5eda65 100644 (file)
@@ -32,6 +32,7 @@ int main(int argc, char **argv)
                fprintf(stderr, "failed to allocate virtual framebuffer\n");
                return 1;
        }
+       vmem_front = vmem_back = fb_pixels;
 
        SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER);
        if(!(fbsurf = SDL_SetVideoMode(xsz, ysz, fb_bpp, sdl_flags))) {
@@ -98,6 +99,11 @@ void demo_quit(void)
        quit = 1;
 }
 
+void swap_buffers(void *pixels)
+{
+       /* do nothing, all pointers point to the same buffer */
+}
+
 static void handle_event(SDL_Event *ev)
 {
        switch(ev->type) {