diff options
author | Paul Gilbert | 2011-03-19 14:59:26 +1100 |
---|---|---|
committer | strangerke | 2011-03-21 08:07:13 +0100 |
commit | 5df908a8063f54ef9a8dc060cd241841d5508e8f (patch) | |
tree | eb3be2c24f75739604fc8fbe56977892b94b3f76 /engines/tsage | |
parent | b9955a3de676922313b39264e33ff6e3678d751a (diff) | |
download | scummvm-rg350-5df908a8063f54ef9a8dc060cd241841d5508e8f.tar.gz scummvm-rg350-5df908a8063f54ef9a8dc060cd241841d5508e8f.tar.bz2 scummvm-rg350-5df908a8063f54ef9a8dc060cd241841d5508e8f.zip |
TSAGE: Correctly handle priority regions when drawing in a wide scene
Diffstat (limited to 'engines/tsage')
-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; } |