1
0
Fork 0

some small changes that fix mode 6 at my place

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2203
This commit is contained in:
Peter Veenstra 2005-04-29 15:04:07 +00:00
parent a7b9d51ead
commit 347c222b93
2 changed files with 3 additions and 2 deletions

View file

@ -438,7 +438,7 @@ void VGA_SetupDrawing(Bitu val) {
break;
case M_CGA2:
doubleheight=true;
vga.draw.blocks=width;
vga.draw.blocks=2*width;
width<<=4;
VGA_DrawLine=VGA_Draw_1BPP_Line;
break;

View file

@ -484,6 +484,7 @@ bool INT10_SetVideoMode(Bitu mode) {
case M_LIN8:
underline=0x60; //Seems to enable the every 4th clock on my s3
break;
case M_CGA2:
case M_CGA4:
max_scanline|=1;
break;
@ -566,10 +567,10 @@ bool INT10_SetVideoMode(Bitu mode) {
case M_EGA16:
gfx_data[0x6]|=0x05; //graphics mode at 0xa000-affff
break;
case M_CGA2:
case M_CGA4:
case M_TANDY16:
gfx_data[0x5]|=0x20; //CGA mode
case M_CGA2:
gfx_data[0x6]|=0x0f; //graphics mode at at 0xb800=0xbfff
break;
}