INT 10h: VGA DAC read index, too

This commit is contained in:
Jonathan Campbell 2018-02-10 12:42:56 -08:00
parent b9f7577f88
commit e1df6f97c4

View File

@ -1532,7 +1532,8 @@ dac_text16:
if (modeset_ctl & 2) INT10_PerformGrayScaleSumming(0,256);
}
/* make sure the DAC index is reset on modeset */
IO_Write(0x3c8,0);
IO_Write(0x3c7,0); /* according to src/hardware/vga_dac.cpp this sets read_index=0 and write_index=1 */
IO_Write(0x3c8,0); /* so set write_index=0 */
} else {
for (Bit8u ct=0x10;ct<ATT_REGS;ct++) {
if (ct==0x11) continue; // skip overscan register