TONY: Ignore draw attempts with non-positive width/height.

This avoids an invalid dirty rect (width -1) during the
introduction scene inside Halloween Park.
This commit is contained in:
Alyssa Milburn 2012-08-23 22:59:19 +02:00
parent bad6ec8388
commit 61b11037c3

View File

@ -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);
}