mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 11:51:09 +08:00
Correct DAC remapping responsible for wrong colors in Flight Simulator
This commit is contained in:
parent
bc99b648ff
commit
2e7d4540b6
@ -221,7 +221,7 @@ static void write_crtc_data_other(Bitu /*port*/,Bitu val,Bitu /*iolen*/) {
|
||||
case 0x1C: /* Hercules InColor */
|
||||
if (hercCard == HERC_InColor) {
|
||||
vga.herc.palette[vga.herc.palette_index] = (uint8_t)val & 63u;
|
||||
VGA_DAC_CombineColor(vga.herc.palette_index,vga.herc.palette_index);
|
||||
VGA_ATTR_SetPalette(vga.herc.palette_index,vga.herc.palette_index);
|
||||
if (++vga.herc.palette_index >= 0x10) vga.herc.palette_index = 0;
|
||||
break;
|
||||
}
|
||||
|
@ -1065,7 +1065,10 @@ bool INT10_SetVideoMode_OTHER(uint16_t mode,bool clearmem) {
|
||||
case MCH_HERC:
|
||||
IO_WriteB(0x3b8,0x28); // TEXT mode and blinking characters
|
||||
|
||||
if (hercCard < HERC_InColor) {
|
||||
if (hercCard >= HERC_InColor) {
|
||||
VGA_ATTR_SetEGAMonitorPalette(EGA);
|
||||
}
|
||||
else {
|
||||
Herc_Palette();
|
||||
VGA_DAC_CombineColor(0,0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user