aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r--engines/tsage/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp
index 5acd191b11..3bcad91d66 100644
--- a/engines/tsage/graphics.cpp
+++ b/engines/tsage/graphics.cpp
@@ -602,7 +602,7 @@ void GfxSurface::copyFrom(GfxSurface &src, Rect srcBounds, Rect destBounds, Regi
destBounds.bottom = destSurface.h;
if (destBounds.isValidRect() && !((destBounds.right < 0) || (destBounds.bottom < 0)
- || (destBounds.left >= SCREEN_WIDTH) || (destBounds.top >= SCREEN_HEIGHT))) {
+ || (destBounds.left >= destSurface.w) || (destBounds.top >= destSurface.h))) {
// Register the affected area as dirty
addDirtyRect(destBounds);