mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 17:45:39 +00:00
TSAGE: Correctly handle priority regions when drawing in a wide scene
This commit is contained in:
parent
b9955a3de6
commit
5df908a806
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user