1
0
Fork 0

Only set LFB address if it changes.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1225
This commit is contained in:
Sjoerd van der Berg 2003-09-03 20:31:49 +00:00
parent 08d9c9c8af
commit 66c850027e

View file

@ -423,12 +423,16 @@ void write_p3d5(Bit32u port,Bit8u val) {
if clear 7MCLKs
*/
case 0x59: /* Linear Address Window Position High */
vga.s3.la_window=(vga.s3.la_window&0x00ff) | (val << 8);
VGA_StartUpdateLFB();
if ((vga.s3.la_window&0xff00) ^ (val << 8)) {
vga.s3.la_window=(vga.s3.la_window&0x00ff) | (val << 8);
VGA_StartUpdateLFB();
}
break;
case 0x5a: /* Linear Address Window Position Low */
vga.s3.la_window=(vga.s3.la_window&0xff00) | val;
VGA_StartUpdateLFB();
if ((vga.s3.la_window&0x00ff) ^ val) {
vga.s3.la_window=(vga.s3.la_window&0xff00) | val;
VGA_StartUpdateLFB();
}
break;
case 0x5D: /* Extended Horizontal Overflow */
if ((val & vga.s3.ex_hor_overflow) ^ 3) {