From 61b11037c3d05e527932b37b556b655531836373 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Thu, 23 Aug 2012 22:59:19 +0200 Subject: TONY: Ignore draw attempts with non-positive width/height. This avoids an invalid dirty rect (width -1) during the introduction scene inside Halloween Park. --- engines/tony/gfxcore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp index 0c331cc0e9..0241d96af1 100644 --- a/engines/tony/gfxcore.cpp +++ b/engines/tony/gfxcore.cpp @@ -198,7 +198,7 @@ bool RMGfxSourceBuffer::clip2D(int &x1, int &y1, int &u, int &v, int &width, int if (y1 + height - 1 > desth - 1) height = desth - y1; - return true; + return (width > 1 && height > 1); } -- cgit v1.2.3