X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fsdl%2Fmain.c;h=e5eda65597b3b6501b63651b19f20d8955fce93a;hp=b3ff90557889e8090c9fd592b6dd5e448832ed7c;hb=5d9ec41cc62ebddf5d406511714e561e88884987;hpb=f48bebd0c67210cd8b56e7d491b4942971e34ed1 diff --git a/src/sdl/main.c b/src/sdl/main.c index b3ff905..e5eda65 100644 --- a/src/sdl/main.c +++ b/src/sdl/main.c @@ -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) {