add setmode corrections from ih8regs (patch 1198821);
change vga mode detection (Prehistorik 2) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2313
This commit is contained in:
parent
7b1990cdcf
commit
9be07ec88b
3 changed files with 101 additions and 41 deletions
|
@ -52,12 +52,17 @@ void VGA_DetermineMode(void) {
|
|||
}
|
||||
/* Test for graphics or alphanumeric mode */
|
||||
} else if (vga.attr.mode_control & 1) {
|
||||
if (vga.gfx.mode & 0x40) VGA_SetMode(M_VGA);
|
||||
else if (vga.gfx.mode & 0x20) VGA_SetMode(M_CGA4);
|
||||
else if ((vga.gfx.miscellaneous & 0x0c)==0x0c) VGA_SetMode(M_CGA2);
|
||||
else VGA_SetMode(M_EGA16);
|
||||
/* old mode detection:
|
||||
if (!(vga.crtc.mode_control & 0x1)) {
|
||||
if (vga.gfx.mode & 0x20) VGA_SetMode(M_CGA4);
|
||||
else VGA_SetMode(M_CGA2);
|
||||
} else if (vga.attr.mode_control & 0x40) {
|
||||
VGA_SetMode(M_VGA);
|
||||
} else VGA_SetMode(M_EGA16);
|
||||
} else VGA_SetMode(M_EGA16); */
|
||||
} else {
|
||||
VGA_SetMode(M_TEXT);
|
||||
}
|
||||
|
|
|
@ -441,7 +441,7 @@ void VGA_SetupDrawing(Bitu val) {
|
|||
case M_CGA2:
|
||||
doubleheight=true;
|
||||
vga.draw.blocks=2*width;
|
||||
width<<=4;
|
||||
width<<=3;
|
||||
VGA_DrawLine=VGA_Draw_1BPP_Line;
|
||||
break;
|
||||
case M_TEXT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue