From d5c4e3af68e024a86313944f880d4c6430d76fc5 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 2 Jun 2016 15:16:14 -0500 Subject: [PATCH] hmmm --- src/lib/modex16.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 1e6a2fcc..22bcc7e9 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -62,7 +62,12 @@ void VGAmodeX(sword vq, boolean cmem, global_game_variables_t *gv) static void vgaSetMode(byte mode) { - int10_setmode(mode); + union REGS regs; + + regs.h.ah = SET_MODE; + regs.h.al = mode; + int86(VIDEO_INT, ®s, ®s); + //int10_setmode(mode); } //--------------------------------------------------- @@ -85,12 +90,14 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv) vgaSetMode(VGA_256_COLOR_MODE); vga_enable_256color_modex(); - /* reprogram the CRT controller */ -// outp(CRTC_INDEX, 0x11); /* VSync End reg contains register write prot */ -// outp(CRTC_DATA, 0x7f); /* get current write protect on varios regs */ + update_state_from_vga(); vga_read_crtc_mode(&cm); + /* reprogram the CRT controller */ + outp(CRTC_INDEX, 0x11); /* VSync End reg contains register write prot */ + outp(CRTC_DATA, 0x7f); /* get current write protect on varios regs */ + switch(vq) { case 1: -- 2.39.2