aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2011-03-19 14:59:26 +1100
committerPaul Gilbert2011-03-19 14:59:26 +1100
commit47be9eee49b1f8eae03fb5d2b834d3cf51b055a6 (patch)
tree90211c36c12a4fa78f47a4a316c1cac64df8cd5e
parent10836d20f6be451cdb62a8dcb98d2175c03d3947 (diff)
downloadscummvm-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.cpp4
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;
}