aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/voyeur/files.cpp')
-rw-r--r--engines/voyeur/files.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/voyeur/files.cpp b/engines/voyeur/files.cpp
index 6f44806acd..9dff1f0ea7 100644
--- a/engines/voyeur/files.cpp
+++ b/engines/voyeur/files.cpp
@@ -916,7 +916,7 @@ void ViewPortResource::setupViewPort(PictureResource *page, Common::Rect *clipRe
}
xDiff = r.right - clipRect->right;
- yDiff = r.right - clipRect->right;
+ yDiff = r.bottom - clipRect->bottom;
if (xDiff > 0)
r.setWidth(xDiff <= r.width() ? r.width() - xDiff : 0);