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