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:
parent
ea922b767a
commit
7fcfb7d2bc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue