1
0
Fork 0

add patch "[ 1255540 ] Fixing undocumented VGA palette behavior" from vasyl. Fixes wari, but keeps star control 2 working

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2267
This commit is contained in:
Peter Veenstra 2005-08-10 16:12:37 +00:00
parent 3bd8abfccd
commit 5baa46abfc

View file

@ -118,7 +118,7 @@ static void write_p3c9(Bitu port,Bitu val,Bitu iolen) {
}
}
vga.dac.write_index++;
vga.dac.read_index = vga.dac.write_index - 1;
// vga.dac.read_index = vga.dac.write_index - 1;//disabled as it breaks Wari
vga.dac.pel_index=0;
break;
default:
@ -141,7 +141,7 @@ static Bitu read_p3c9(Bitu port,Bitu iolen) {
ret=vga.dac.rgb[vga.dac.read_index].blue;
vga.dac.read_index++;
vga.dac.pel_index=0;
vga.dac.write_index=vga.dac.read_index+1;
// vga.dac.write_index=vga.dac.read_index+1;//disabled as it breaks wari
break;
default:
LOG(LOG_VGAMISC,LOG_NORMAL)("VGA:DAC:Illegal Pel Index"); //If this can actually happen that will be the day