From f077d04c4f7d2005e52aa6248729445e257c9e37 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 16 Jun 2016 12:50:16 -0500 Subject: [PATCH] optimize for XT i did ww --- src/lib/scroll16.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 5e0a4202..d649446f 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -818,11 +818,11 @@ void shinku(global_game_variables_t *gv) if(pageflipflop){ 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); - 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); + 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); + //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(); + vga_restore_rm0wm0(); modexShowPage(&(gv->video.page[gv->video.p])); gv->video.p=!gv->video.p; gv->video.r=!gv->video.r; -- 2.39.5