X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdos%2Fmain.c;fp=src%2Fdos%2Fmain.c;h=f048366e8f7c55314d157a06eaa3f2a662d44003;hb=041f405d669f940976cd8485821f0de5194cbe88;hp=761dd56611132036304262dc31ce6482ac202657;hpb=387c4948b144c51c5b6fcfb8f558c3becf324f70;p=retrobench diff --git a/src/dos/main.c b/src/dos/main.c index 761dd56..f048366 100644 --- a/src/dos/main.c +++ b/src/dos/main.c @@ -74,14 +74,16 @@ end: return 0; } -int resizefb(int x, int y, int bpp) +int resizefb(int x, int y, int bpp, int pitch) { + printf("resizefb %dx%d %dbpp (pitch: %d)\n", x, y, bpp, pitch); + free(framebuf); fb_width = x; fb_height = y; fb_bpp = bpp; - fb_pitch = x * bpp / 8; + fb_pitch = pitch; if(!(framebuf = malloc(fb_pitch * fb_height))) { fprintf(stderr, "failed to allocate %dx%d (%dbpp) framebuffer\n",