1
0
Fork 0

Potentially resize the screen when vertical blanking end changes. Fixes Threat v1.40 Intro.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3662
This commit is contained in:
Ralf Grillenberger 2010-11-29 22:26:32 +00:00
parent 15f221d8a1
commit bf3e6ab0ef

View file

@ -302,10 +302,14 @@ void vga_write_p3d5(Bitu port,Bitu val,Bitu iolen) {
*/
break;
case 0x16: /* End Vertical Blank Register */
crtc(end_vertical_blanking)=val;
/*
if (val!=crtc(end_vertical_blanking)) {
crtc(end_vertical_blanking)=val;
VGA_StartResize();
}
/*
0-6 Vertical blanking stops when the lower 7 bits of the line counter
equals this field. Some SVGA chips uses all 8 bits!
IBM actually says bits 0-7.
*/
break;
case 0x17: /* Mode Control Register */