X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdos%2Fmain.c;h=048aa9dc1cefbeb3deda2f3ac9f3991c9e621792;hb=56142c5f75e9464ce20f7b9e49e868e3997b76b3;hp=761dd56611132036304262dc31ce6482ac202657;hpb=387c4948b144c51c5b6fcfb8f558c3becf324f70;p=retrobench diff --git a/src/dos/main.c b/src/dos/main.c index 761dd56..048aa9d 100644 --- a/src/dos/main.c +++ b/src/dos/main.c @@ -67,21 +67,25 @@ int main(int argc, char **argv) end: set_text_mode(); cleanup_video(); + stop_logger(); if(num_frames) { + printf("%d frames in %d msec\n", num_frames, time_msec); printf("avg framerate: %.1f fps\n", (10000 * num_frames / time_msec) / 10.0f); } 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",