X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdos%2Fgfx.c;h=48b5c2033c4dea1bc15d2091fdf510c76960e5e3;hp=1f9b7270f66b72638646a5a910e428a662d26c0f;hb=d956a9d9273eebfacfda58cb3bafff017269d5dc;hpb=93f68e445b0a4f10f2b15383aafed8a216a4a228 diff --git a/src/dos/gfx.c b/src/dos/gfx.c index 1f9b727..48b5c20 100644 --- a/src/dos/gfx.c +++ b/src/dos/gfx.c @@ -229,7 +229,7 @@ void *set_video_mode(int idx, int nbuf) } /* allocate main memory framebuffer */ - if(resizefb(vm->xsz, vm->ysz, vm->bpp) == -1) { + if(demo_resizefb(vm->xsz, vm->ysz, vm->bpp) == -1) { fprintf(stderr, "failed to allocate %dx%d (%d bpp) framebuffer\n", vm->xsz, vm->ysz, vm->bpp); set_text_mode(); @@ -269,7 +269,8 @@ void *page_flip(int vsync) static void blit_frame_lfb(void *pixels, int vsync) { - if(show_fps) dbg_fps(pixels); + demo_post_draw(pixels); + if(vsync) wait_vsync(); memcpy64(vpgaddr[frontidx], pixels, pgsize >> 3); } @@ -280,7 +281,7 @@ static void blit_frame_banked(void *pixels, int vsync) unsigned int pending; unsigned char *pptr = pixels; - if(show_fps) dbg_fps(pixels); + demo_post_draw(pixels); if(vsync) wait_vsync();