mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
TSAGE: Bugfix for trying to draw off screen objects, which was causing invalid dirty rects
This commit is contained in:
parent
be706b1846
commit
fe55269653
@ -595,7 +595,8 @@ void GfxSurface::copyFrom(GfxSurface &src, Rect srcBounds, Rect destBounds, Regi
|
||||
if (destBounds.bottom > destSurface.h)
|
||||
destBounds.bottom = destSurface.h;
|
||||
|
||||
if (destBounds.isValidRect()) {
|
||||
if (destBounds.isValidRect() && !((destBounds.right < 0) || (destBounds.bottom < 0)
|
||||
|| (destBounds.left >= SCREEN_WIDTH) || (destBounds.top >= SCREEN_HEIGHT))) {
|
||||
// Register the affected area as dirty
|
||||
addDirtyRect(destBounds);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user