From 900779b8b2ce8c05c3df897d3ae3fa5d8cb414c6 Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Wed, 6 Apr 2016 09:06:16 -0700 Subject: [PATCH] use write sequencer function --- src/lib/modex16.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.39.5