1
0
Fork 0

Changing scanline length doesn't start a screen resize

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1659
This commit is contained in:
Sjoerd van der Berg 2004-02-07 18:49:28 +00:00
parent ca4be6fe43
commit 6118a57ffc

View file

@ -219,12 +219,9 @@ void write_p3d5(Bit32u port,Bit8u val) {
*/
break;
case 0x13: /* Offset register */
if (val!=crtc(offset)) {
crtc(offset)=val;
vga.config.scan_len&=0x300;
vga.config.scan_len|=val;
VGA_StartResize();
}
crtc(offset)=val;
vga.config.scan_len&=0x300;
vga.config.scan_len|=val;
/*
0-7 Number of bytes in a scanline / K. Where K is 2 for byte mode, 4 for
word mode and 8 for Double Word mode.