1
0
Fork 0

small vga fixes (vasyl)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3067
This commit is contained in:
Sebastian Strohhäcker 2007-12-27 10:57:51 +00:00
parent 4577f5ed59
commit a472b4777b
2 changed files with 5 additions and 3 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: vga_s3.cpp,v 1.9 2007-12-10 22:11:13 c2woody Exp $ */
/* $Id: vga_s3.cpp,v 1.10 2007-12-27 10:57:51 c2woody Exp $ */
#include "dosbox.h"
#include "inout.h"
@ -240,7 +240,7 @@ void SVGA_S3_WriteCRTC(Bitu reg,Bitu val,Bitu iolen) {
}
break;
case 0x5D: /* Extended Horizontal Overflow */
if ((val & vga.s3.ex_hor_overflow) ^ 3) {
if ((val ^ vga.s3.ex_hor_overflow) & 3) {
vga.s3.ex_hor_overflow=val;
VGA_StartResize();
} else vga.s3.ex_hor_overflow=val;

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: int10_modes.cpp,v 1.72 2007-12-19 21:12:22 c2woody Exp $ */
/* $Id: int10_modes.cpp,v 1.73 2007-12-27 10:57:51 c2woody Exp $ */
#include <string.h>
@ -971,6 +971,7 @@ att_text16:
IO_Write(0x3c0,i);
IO_Write(0x3c0,att_data[i]);
}
vga.config.pel_panning = 0;
IO_Write(0x3c0,0x20); IO_Write(0x3c0,0x00); //Disable palette access
IO_Write(0x3c6,0xff); //Reset Pelmask
/* Setup the DAC */
@ -1036,6 +1037,7 @@ dac_text16:
IO_Write(0x3c0,i);
IO_Write(0x3c0,att_data[i]);
}
vga.config.pel_panning = 0;
IO_Write(0x3c0,0x20); //Disable palette access
}
/* Setup some special stuff for different modes */