aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2012-08-23 22:59:19 +0200
committerAlyssa Milburn2012-08-25 08:41:21 +0200
commit61b11037c3d05e527932b37b556b655531836373 (patch)
treeea005b9fdd2a4267d0a0d22dcd738bbc09480421 /engines
parentbad6ec838876bd88e3638bd07ad6e7d12c9af727 (diff)
downloadscummvm-rg350-61b11037c3d05e527932b37b556b655531836373.tar.gz
scummvm-rg350-61b11037c3d05e527932b37b556b655531836373.tar.bz2
scummvm-rg350-61b11037c3d05e527932b37b556b655531836373.zip
TONY: Ignore draw attempts with non-positive width/height.
This avoids an invalid dirty rect (width -1) during the introduction scene inside Halloween Park.
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/gfxcore.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}