aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/myst_graphics.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/mohawk/myst_graphics.cpp b/engines/mohawk/myst_graphics.cpp
index 55a92b2b08..b5222c6d91 100644
--- a/engines/mohawk/myst_graphics.cpp
+++ b/engines/mohawk/myst_graphics.cpp
@@ -892,10 +892,15 @@ void MystGraphics::replaceImageWithRect(uint16 destImage, uint16 sourceImage, co
}
void MystGraphics::clearScreen() {
- if (_vm->getFeatures() & GF_ME)
- _vm->_system->fillScreen(_pixelFormat.RGBToColor(0, 0, 0));
- else
- _vm->_system->fillScreen(0);
+ Graphics::Surface *screen = _vm->_system->lockScreen();
+ if (screen) {
+ if (_vm->getFeatures() & GF_ME)
+ screen->fillRect(_viewport, _pixelFormat.RGBToColor(0, 0, 0));
+ else
+ screen->fillRect(_viewport, 0);
+
+ _vm->_system->unlockScreen();
+ }
}
} // End of namespace Mohawk