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:
parent
08d9c9c8af
commit
66c850027e
1 changed files with 8 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue