]> 4ch.mooo.com Git - 16.git/commitdiff
optimize for XT i did ww
authorsparky4 <sparky4@cock.li>
Thu, 16 Jun 2016 17:51:59 +0000 (12:51 -0500)
committersparky4 <sparky4@cock.li>
Thu, 16 Jun 2016 17:51:59 +0000 (12:51 -0500)
src/lib/scroll16.c
src/scroll.c

index d649446f314ca186ffa22bdd3bf81bb6295c18c8..0e9949425c037d794f20db0e9c2ad2ff94dfb96f 100755 (executable)
@@ -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();
index 18949a8055971c99d0828aed064868eba002534a..34151f1c1860ff5fa4f9c50808cd8848cde26c56 100755 (executable)
@@ -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