From 2f5f4a5b47cbcb0c1daeaa4b1632b72bd6a9afd5 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sun, 11 Mar 2018 14:29:56 +0000 Subject: [PATCH] Fixed double IO mapping of Mono VGA registers. --- src/vid_svga.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/vid_svga.c b/src/vid_svga.c index 5835aa6..91c5b3d 100644 --- a/src/vid_svga.c +++ b/src/vid_svga.c @@ -78,16 +78,9 @@ void svga_out(uint16_t addr, uint8_t val, void *p) case 0x3C2: svga->miscout = val; svga->vidclock = val & 4;// printf("3C2 write %02X\n",val); - if (val & 1) - { -// pclog("Remove mono handler\n"); - io_removehandler(0x03a0, 0x0020, svga->video_in, NULL, NULL, svga->video_out, NULL, NULL, svga->p); - } - else - { -// pclog("Set mono handler\n"); + io_removehandler(0x03a0, 0x0020, svga->video_in, NULL, NULL, svga->video_out, NULL, NULL, svga->p); + if (!(val & 1)) io_sethandler(0x03a0, 0x0020, svga->video_in, NULL, NULL, svga->video_out, NULL, NULL, svga->p); - } svga_recalctimings(svga); break; case 0x3C4: