]> 4ch.mooo.com Git - 16.git/commitdiff
use write sequencer function
authorJonathan Campbell <jonathan@castus.tv>
Wed, 6 Apr 2016 16:06:16 +0000 (09:06 -0700)
committerJonathan Campbell <jonathan@castus.tv>
Wed, 6 Apr 2016 16:06:16 +0000 (09:06 -0700)
src/lib/modex16.c

index d5e17a9862221debe792e7ec35a6c8cf6bd13004..0aa6904b1daa289ca79646d456cb9a4f5122ef17 100755 (executable)
@@ -201,10 +201,8 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv)
        {\r
                case 1:\r
                /* clear video memory */\r
-               outpw(SC_INDEX, 0x0f02);\r
-               for(i=0; i<0x8000; i++) {\r
-                       ptr[i] = 0x0000;\r
-               }\r
+               vga_write_sequencer(2/*map mask register*/,0xf/*all 4 planes*/);\r
+               for(i=0; i<0x8000; i++) ptr[i] = 0x0000;\r
                break;\r
        }\r
        gv->video.page[0].tilesw = gv->video.page[0].sw/TILEWH;\r