X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=eradicate;a=blobdiff_plain;f=src%2Fdos%2Fgfx.c;fp=src%2Fdos%2Fgfx.c;h=cacd9842664e9da0f12675f188ba158e27b9f5cf;hp=c588742e2624d26f79834a07e531cf7796fc4574;hb=d54a3962dcb42f9921be75cf3754525ecef2bab6;hpb=03eaea2400647375400c3bc4d927c399e142a901 diff --git a/src/dos/gfx.c b/src/dos/gfx.c index c588742..cacd984 100644 --- a/src/dos/gfx.c +++ b/src/dos/gfx.c @@ -238,7 +238,7 @@ void *page_flip(int vsync) static void blit_frame_lfb(void *pixels, int vsync) { - dbg_fps(pixels); + if(show_fps) dbg_fps(pixels); if(vsync) wait_vsync(); memcpy64(vpgaddr[frontidx], pixels, pgsize >> 3); } @@ -249,7 +249,7 @@ static void blit_frame_banked(void *pixels, int vsync) unsigned int pending; unsigned char *pptr = pixels; - dbg_fps(pixels); + if(show_fps) dbg_fps(pixels); if(vsync) wait_vsync(); @@ -258,7 +258,8 @@ static void blit_frame_banked(void *pixels, int vsync) pending = pgsize; while(pending > 0) { sz = pending > curmode->bank_size ? curmode->bank_size : pending; - memcpy64((void*)0xa0000, pptr, sz >> 3); + //memcpy64((void*)0xa0000, pptr, sz >> 3); + memcpy((void*)0xa0000, pptr, sz); pptr += sz; pending -= sz; vbe_setwin(0, ++offs);