From: sparky4 Date: Thu, 2 Jun 2016 20:16:14 +0000 (-0500) Subject: hmmm X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=d5c4e3af68e024a86313944f880d4c6430d76fc5;p=16.git hmmm --- 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: