TSAGE: Correctly handle priority regions when drawing in a wide scene

This commit is contained in:
Paul Gilbert 2011-03-19 14:59:26 +11:00 committed by strangerke
parent b9955a3de6
commit 5df908a806

View File

@ -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;
}