1
0
Fork 0

Add beta2 patch: fix Psycho Pinball tilt causing mode changes

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2740
This commit is contained in:
Sebastian Strohhäcker 2007-01-08 22:25:32 +00:00
parent f65e4b3423
commit d3883f677d

View file

@ -16,12 +16,14 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <stdlib.h>
#include "dosbox.h"
#include "inout.h"
#include "vga.h"
#include "debug.h"
#include "cpu.h"
#include "video.h"
#include "pic.h"
#define crtc(blah) vga.crtc.blah
@ -215,6 +217,10 @@ void vga_write_p3d5(Bitu port,Bitu val,Bitu iolen) {
break;
case 0x12: /* Vertical Display End Register */
if (val!=crtc(vertical_display_end)) {
if (abs((Bits)val-(Bits)crtc(vertical_display_end))<3) {
PIC_RemoveEvents(VGA_SetupDrawing);
vga.draw.resizing=false;
}
crtc(vertical_display_end)=val;
VGA_StartResize();
}