MOHAWK: Riven: Stop sending empty rects when drawing transitions

Fixes #9947.
This commit is contained in:
Bastien Bouclet 2017-07-15 07:23:58 +02:00
parent ef42fd3476
commit a7900f5756

View File

@ -228,11 +228,15 @@ public:
}
}
_system->copyRectToScreen(_effectScreen->getBasePtr(oldX, oldY), _effectScreen->pitch,
oldArea.left, oldArea.top, oldArea.width(), oldArea.height());
if (!oldArea.isEmpty()) {
_system->copyRectToScreen(_effectScreen->getBasePtr(oldX, oldY), _effectScreen->pitch,
oldArea.left, oldArea.top, oldArea.width(), oldArea.height());
}
_system->copyRectToScreen(_mainScreen->getBasePtr(newX, newY), _mainScreen->pitch,
newArea.left, newArea.top, newArea.width(), newArea.height());
if (!newArea.isEmpty()) {
_system->copyRectToScreen(_mainScreen->getBasePtr(newX, newY), _mainScreen->pitch,
newArea.left, newArea.top, newArea.width(), newArea.height());
}
if (newArea == _rect) {
_effectScreen->copyRectToSurface(*_mainScreen, _rect.left, _rect.top, _rect);