1
0
Fork 0

Support s3 pixel format register, 8bpp only for now

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1723
This commit is contained in:
Sjoerd van der Berg 2004-03-14 19:05:41 +00:00
parent c462ea28c3
commit db45414323
4 changed files with 27 additions and 2 deletions

View file

@ -49,8 +49,13 @@ void VGA_SetMode(VGAModes mode) {
}
void VGA_DetermineMode(void) {
/* Test for VGA output active or direct color modes */
if (vga.s3.misc_control_2 & 0xf0) {
switch (vga.s3.misc_control_2 >> 4) {
case 1:VGA_SetMode(M_LIN8);break;
}
/* Test for graphics or alphanumeric mode */
if (vga.attr.mode_control & 1) {
} else if (vga.attr.mode_control & 1) {
if (!(vga.crtc.mode_control & 0x1)) {
if (vga.gfx.mode & 0x20) VGA_SetMode(M_CGA4);
else VGA_SetMode(M_CGA2);