VOYEUR: Fix for setting up viewport clipping rect
This commit is contained in:
parent
4f9c900a03
commit
1af5a3b1b4
1 changed files with 1 additions and 1 deletions
|
@ -916,7 +916,7 @@ void ViewPortResource::setupViewPort(PictureResource *page, Common::Rect *clipRe
|
||||||
}
|
}
|
||||||
|
|
||||||
xDiff = r.right - clipRect->right;
|
xDiff = r.right - clipRect->right;
|
||||||
yDiff = r.right - clipRect->right;
|
yDiff = r.bottom - clipRect->bottom;
|
||||||
|
|
||||||
if (xDiff > 0)
|
if (xDiff > 0)
|
||||||
r.setWidth(xDiff <= r.width() ? r.width() - xDiff : 0);
|
r.setWidth(xDiff <= r.width() ? r.width() - xDiff : 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue