1
0
Fork 0

Fix regression in Spacewar with Hercules video. Thanks ripsaw8080 for reporting.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3617
This commit is contained in:
Ralf Grillenberger 2010-06-28 12:16:15 +00:00
parent c111163bec
commit ad7695d707

View file

@ -516,7 +516,12 @@ static void write_hercules(Bitu port,Bitu val,Bitu /*iolen*/) {
break;
}
case 0x3bf:
vga.herc.enable_bits=(Bit8u)val;
if ( vga.herc.enable_bits ^ val) {
vga.herc.enable_bits=val;
// Bit 1 enables the upper 32k of video memory,
// so update the handlers
VGA_SetupHandlers();
}
break;
}
}