X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdos%2Fmain.c;h=4d2f7facee112df05911823b57b363f113c279bd;hp=70ea449f9b8001017e07d4feb55bb24c4555ef1a;hb=7cffbf057545fb303ad8f53e432ef42f7708e16d;hpb=102f82ec5a8128cb076371aa3d9821e684b94380 diff --git a/src/dos/main.c b/src/dos/main.c index 70ea449..4d2f7fa 100644 --- a/src/dos/main.c +++ b/src/dos/main.c @@ -51,12 +51,17 @@ int main(int argc, char **argv) set_mouse(fb_width / 2, fb_height / 2); } + /* now start_loadscr sets up fb_pixels to the space used by the loading image, + * so no need to allocate another framebuffer + */ +#if 0 /* allocate a couple extra rows as a guard band, until we fucking fix the rasterizer */ if(!(fb_pixels = malloc(fbsize + (fb_width * fb_bpp / 8) * 2))) { fprintf(stderr, "failed to allocate backbuffer\n"); return 1; } fb_pixels += fb_width; +#endif if(!(vmem = set_video_mode(fb_width, fb_height, fb_bpp, 1))) { return 1; @@ -124,11 +129,12 @@ void swap_buffers(void *pixels) pixels = fb_pixels; } + demo_post_draw(pixels); + /* just memcpy to the front buffer */ if(opt.vsync) { wait_vsync(); } - drawFps(pixels); memcpy(vmem, pixels, fbsize); }