aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/graphics.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-02-05 20:31:56 +1100
committerPaul Gilbert2012-02-05 20:31:56 +1100
commit45e61b985c200a9189d172e8a1410915e7f81f95 (patch)
tree5036165fb0f1f08e73048ffc379937eb7e2eabdf /engines/tsage/graphics.cpp
parent07f1d33ef7fea990b851d1e35fcc553380f368e2 (diff)
downloadscummvm-rg350-45e61b985c200a9189d172e8a1410915e7f81f95.tar.gz
scummvm-rg350-45e61b985c200a9189d172e8a1410915e7f81f95.tar.bz2
scummvm-rg350-45e61b985c200a9189d172e8a1410915e7f81f95.zip
TSAGE: Fix problem with scrolling wide scenes.
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);