]> 4ch.mooo.com Git - 16.git/commitdiff
joncampbell what is going on? ^^
authorsparky4 <sparky4@cock.li>
Tue, 17 May 2016 19:13:12 +0000 (14:13 -0500)
committersparky4 <sparky4@cock.li>
Tue, 17 May 2016 19:13:12 +0000 (14:13 -0500)
src/lib/modex16.c

index 25399014bf750a05517b20935f82c86beb029b43..a2bbb204c8c002bcfd089cbd5592a748763bf784 100755 (executable)
@@ -85,6 +85,9 @@ void modexEnter(sword vq, boolean cmem, global_game_variables_t *gv)
 \r
        vgaSetMode(VGA_256_COLOR_MODE);\r
        vga_enable_256color_modex();\r
+       /* reprogram the CRT controller */\r
+       outp(CRTC_INDEX, 0x11); /* VSync End reg contains register write prot */\r
+       outp(CRTC_DATA, 0x7f);  /* get current write protect on varios regs */\r
        update_state_from_vga();\r
        vga_read_crtc_mode(&cm);\r
 \r