Skip to content

Commit

Permalink
TONY: Ignore draw attempts with non-positive width/height.
Browse files Browse the repository at this point in the history
This avoids an invalid dirty rect (width -1) during the
introduction scene inside Halloween Park.
  • Loading branch information
fuzzie committed Aug 25, 2012
1 parent bad6ec8 commit 61b1103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/tony/gfxcore.cpp
Expand Up @@ -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);
}


Expand Down

0 comments on commit 61b1103

Please sign in to comment.