diff options
author | Paul Gilbert | 2013-06-23 11:16:53 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-06-23 11:16:53 -0400 |
commit | cc4486772c32f3ccc334541c8200e31375d78c78 (patch) | |
tree | c9bd33c761ae5fed564e0cc1dd23af068dab118d /engines | |
parent | b4bfc7c71cd716111b97e389f98cf00e7e7163d9 (diff) | |
download | scummvm-rg350-cc4486772c32f3ccc334541c8200e31375d78c78.tar.gz scummvm-rg350-cc4486772c32f3ccc334541c8200e31375d78c78.tar.bz2 scummvm-rg350-cc4486772c32f3ccc334541c8200e31375d78c78.zip |
VOYEUR: Fix in bounds clipping in sDrawPic
Diffstat (limited to 'engines')
-rw-r--r-- | engines/voyeur/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp index c79081ceef..98b3e74087 100644 --- a/engines/voyeur/graphics.cpp +++ b/engines/voyeur/graphics.cpp @@ -169,8 +169,8 @@ void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *des if (srcFlags & 1) { if (_clipPtr) { - int xs = _clipPtr->left - srcPic->_bounds.left; - int ys = _clipPtr->top - srcPic->_bounds.top; + int xs = _clipPtr->left - destPic->_bounds.left; + int ys = _clipPtr->top - destPic->_bounds.top; newBounds = Common::Rect(xs, ys, xs + _clipPtr->width(), ys + _clipPtr->height()); } else if (destViewPort) { int xs = destViewPort->_clipRect.left - destPic->_bounds.left; |