diff options
author | Paul Gilbert | 2011-03-19 14:59:26 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-03-19 14:59:26 +1100 |
commit | 47be9eee49b1f8eae03fb5d2b834d3cf51b055a6 (patch) | |
tree | 90211c36c12a4fa78f47a4a316c1cac64df8cd5e | |
parent | 10836d20f6be451cdb62a8dcb98d2175c03d3947 (diff) | |
download | scummvm-rg350-47be9eee49b1f8eae03fb5d2b834d3cf51b055a6.tar.gz scummvm-rg350-47be9eee49b1f8eae03fb5d2b834d3cf51b055a6.tar.bz2 scummvm-rg350-47be9eee49b1f8eae03fb5d2b834d3cf51b055a6.zip |
TSAGE: Correctly handle priority regions when drawing in a wide scene
-rw-r--r-- | engines/tsage/graphics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 93ac9f07d7..2b323da07a 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -547,7 +547,9 @@ void GfxSurface::copyFrom(GfxSurface &src, Rect srcBounds, Rect destBounds, Regi int xp = destBounds.left; while (tempSrc < (pSrc + destBounds.width())) { - if (!priorityRegion || !priorityRegion->contains(Common::Point(xp, destBounds.top + y))) { + if (!priorityRegion || !priorityRegion->contains(Common::Point( + xp + _globals->_sceneManager._scene->_sceneBounds.left, + destBounds.top + y + _globals->_sceneManager._scene->_sceneBounds.top))) { if (*tempSrc != src._transColour) *tempDest = *tempSrc; } |