1
0
Fork 0

tweak some vga bios functions to better stick to real implementations

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2995
This commit is contained in:
Sebastian Strohhäcker 2007-09-24 20:50:40 +00:00
parent 208edab1ac
commit d64648208a
7 changed files with 101 additions and 34 deletions

View file

@ -139,7 +139,10 @@ static void write_p3cf(Bitu port,Bitu val,Bitu iolen) {
*/
break;
case 6: /* Miscellaneous Register */
gfx(miscellaneous)=val;
if ((gfx(miscellaneous) ^ val) & 0x0c) {
gfx(miscellaneous)=val;
VGA_DetermineMode();
} else gfx(miscellaneous)=val;
VGA_SetupHandlers();
/*
0 Indicates Graphics Mode if set, Alphanumeric mode else.