]> 4ch.mooo.com Git - 16.git/commitdiff
optimized scrolling ww
authorsparky4 <sparky4@cock.li>
Sat, 18 Jun 2016 15:18:40 +0000 (10:18 -0500)
committersparky4 <sparky4@cock.li>
Sat, 18 Jun 2016 15:18:40 +0000 (10:18 -0500)
src/lib/modex16.c
src/lib/scroll16.c

index 85651baca17a59f73e387b4e38d71a2a7b103d92..eeba90fcfdd295bcc56d73993b3d2563400e9f65 100755 (executable)
@@ -307,14 +307,14 @@ modexShowPage(page_t *page) {
     low_address  = LOW_ADDRESS  | (offset << 8);\r
 \r
     /* wait for appropriate timing and then program CRTC */\r
-    while ((inp(INPUT_STATUS_1) & DISPLAY_ENABLE));\r
+    //while ((inp(INPUT_STATUS_1) & DISPLAY_ENABLE));\r
     outpw(CRTC_INDEX, high_address);\r
     outpw(CRTC_INDEX, low_address);\r
     outp(CRTC_INDEX, 0x13);\r
     outp(CRTC_DATA, crtcOffset);\r
 \r
     /*  wait for one retrace */\r
-    while (!(inp(INPUT_STATUS_1) & VRETRACE));\r
+    //while (!(inp(INPUT_STATUS_1) & VRETRACE));\r
 \r
     /* do PEL panning here */\r
     outp(AC_INDEX, 0x33);\r
index 12ee1d89d8f0455c8c8cfc645affe742c7aced48..bc785aa6f77da48e7c388bed075bb7b54d6ee614 100755 (executable)
@@ -843,10 +843,10 @@ void shinku(global_game_variables_t *gv)
        }
        if(pageflipflop){
        if(gv->video.r){
-               //vga_setup_wm1_block_copy();
-               //_fmemcpy((gv->video.page[(gv->video.p)]).data, (gv->video.page[(!gv->video.p)]).data, gv->video.page[(!gv->video.p)].pagesize);
-               //vga_restore_rm0wm0();
-               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();
+               _fmemcpy((gv->video.page[(gv->video.p)]).data, (gv->video.page[(!gv->video.p)]).data, gv->video.page[(!gv->video.p)].pagesize);
+               vga_restore_rm0wm0();
+               //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);
                modexShowPage(&(gv->video.page[gv->video.p]));
                gv->video.p=!gv->video.p;
                gv->video.r=!gv->video.r;