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:
parent
15f221d8a1
commit
bf3e6ab0ef
1 changed files with 6 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue