INT 10h: Make sure VGA DAC currenet index is reset to 0 after modeset (fixes color palette errors in Second Reality)

This commit is contained in:
Jonathan Campbell 2018-02-10 12:36:39 -08:00
parent cf142387b7
commit b9f7577f88

View File

@ -1531,6 +1531,8 @@ dac_text16:
/* check if gray scale summing is enabled */
if (modeset_ctl & 2) INT10_PerformGrayScaleSumming(0,256);
}
/* make sure the DAC index is reset on modeset */
IO_Write(0x3c8,0);
} else {
for (Bit8u ct=0x10;ct<ATT_REGS;ct++) {
if (ct==0x11) continue; // skip overscan register