1
0
Fork 0

Fix setting dac color entries with the high bits not getting cleared before adding color select bits.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1937
This commit is contained in:
Sjoerd van der Berg 2004-09-03 05:10:16 +00:00
parent ea922b767a
commit 7fcfb7d2bc

View file

@ -24,7 +24,7 @@
void VGA_ATTR_SetPalette(Bit8u index,Bit8u val) {
if (vga.attr.mode_control & 0x80) val=(val&0xf) | (vga.attr.color_select << 4);
else val|=(vga.attr.color_select & 0xc) << 4;
else val=(val & 63) | (vga.attr.color_select & 0xc) << 4;
VGA_DAC_CombineColor(index,val);
}