Skip to content
Permalink
Browse files

VGA DAC: Take a cue from DOSBox-SVN and set read index = write index …

…- 1 on write to port 3C8h. Fixes VGA palette issues with XMAS 92 by The Phony Coders
  • Loading branch information...
joncampbell123 committed Feb 10, 2018
1 parent e1df6f9 commit df3a230b6ba6728e81da63ce228eac481bc9eb1a
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/hardware/vga_dac.cpp
@@ -145,6 +145,7 @@ void write_p3c8(Bitu port,Bitu val,Bitu iolen) {
vga.dac.write_index=val;
vga.dac.pel_index=0;
vga.dac.state=DAC_WRITE;
vga.dac.read_index= val - 1;
}

Bitu read_p3c8(Bitu port, Bitu iolen){

0 comments on commit df3a230

Please sign in to comment.
You can’t perform that action at this time.