mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 08:48:13 +00:00
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:
parent
bad6ec8388
commit
61b11037c3
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user