diff --git a/src/hardware/vga_s3.cpp b/src/hardware/vga_s3.cpp index 5c718456..9bf965ed 100644 --- a/src/hardware/vga_s3.cpp +++ b/src/hardware/vga_s3.cpp @@ -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; diff --git a/src/ints/int10_modes.cpp b/src/ints/int10_modes.cpp index 09649a7d..c64f2714 100644 --- a/src/ints/int10_modes.cpp +++ b/src/ints/int10_modes.cpp @@ -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 @@ -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 */