From 6cb99139a8223deaf8efb6ab4d35de517475b257 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 16 Jun 2016 12:51:59 -0500 Subject: [PATCH] optimize for XT i did ww --- src/lib/scroll16.c | 2 +- src/scroll.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index d649446f..0e994942 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -819,7 +819,7 @@ void shinku(global_game_variables_t *gv) if(gv->video.r){ /* block copy pattern to where we will draw the sprite */ vga_setup_wm1_block_copy(); - _fmemmove((gv->video.page[(gv->video.p)]).data, (gv->video.page[(!gv->video.p)]).data, gv->video.page[(!gv->video.p)].pagesize); + _fmemcpy((gv->video.page[(gv->video.p)]).data, (gv->video.page[(!gv->video.p)]).data, gv->video.page[(!gv->video.p)].pagesize); //modexCopyPageRegion(&(gv->video.page[(gv->video.p)]), &(gv->video.page[(!gv->video.p)]), 0, 0, 0, 0, gv->video.page[gv->video.p].width, gv->video.page[!gv->video.p].height); /* must restore Write Mode 0/Read Mode 0 for this code to continue drawing normally */ vga_restore_rm0wm0(); diff --git a/src/scroll.c b/src/scroll.c index 18949a80..34151f1c 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -288,15 +288,6 @@ void main(int argc, char *argv[]) if(IN_KeyDown(68)) //f10 { gvar.kurokku.fpscap=!gvar.kurokku.fpscap; - switch(gvar.kurokku.fpscap) - { - case 0: - gvar.kurokku.frames_per_second=1; - break; - case 1: - gvar.kurokku.frames_per_second=60; - break; - } IN_UserInput(1,1); } if(IN_KeyDown(67)) //f9 -- 2.39.5