Permalink
Browse files

INT 10h: VGA DAC read index, too

  • Loading branch information...
joncampbell123 committed Feb 10, 2018
1 parent b9f7577 commit e1df6f97c49fa6ebd1e99e5c7a3f4aba9005cc3f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ints/int10_modes.cpp
@@ -1532,7 +1532,8 @@ bool INT10_SetVideoMode(Bit16u mode) {
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

0 comments on commit e1df6f9

Please sign in to comment.