X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdos%2Fmain.c;h=4d2f7facee112df05911823b57b363f113c279bd;hp=4dcca05b3226bc89b8590292fae6a3fd5d751dbc;hb=7cffbf057545fb303ad8f53e432ef42f7708e16d;hpb=68f89fa06ae5cfacde9cf8310e97220e5fc05260 diff --git a/src/dos/main.c b/src/dos/main.c index 4dcca05..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;