From: Jonathan Campbell Date: Wed, 6 Apr 2016 16:06:16 +0000 (-0700) Subject: use write sequencer function X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=900779b8b2ce8c05c3df897d3ae3fa5d8cb414c6;p=16.git use write sequencer function --- diff --git a/src/lib/modex16.c b/src/lib/modex16.c index d5e17a98..0aa6904b 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -201,10 +201,8 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv) { case 1: /* clear video memory */ - outpw(SC_INDEX, 0x0f02); - for(i=0; i<0x8000; i++) { - ptr[i] = 0x0000; - } + vga_write_sequencer(2/*map mask register*/,0xf/*all 4 planes*/); + for(i=0; i<0x8000; i++) ptr[i] = 0x0000; break; } gv->video.page[0].tilesw = gv->video.page[0].sw/TILEWH;