GRAPHICS: MACGUI: bring kWMModeNoDesktop flag useful again

This commit is contained in:
ysj1173886760 2021-04-12 21:08:31 +08:00 committed by Eugene Sandulenko
parent c8fd1e17f0
commit 803cd6d715

View File

@ -546,6 +546,7 @@ void MacWindowManager::draw() {
Common::Rect bounds = getScreenBounds();
if (_fullRefresh) {
if (!(_mode & kWMModeNoDesktop)) {
Common::Rect screen = getScreenBounds();
if (_desktop->w != screen.width() || _desktop->h != screen.height()) {
_desktop->free();
@ -560,7 +561,7 @@ void MacWindowManager::draw() {
_screenCopyPauseToken = new PauseToken(pauseEngine());
g_system->copyRectToScreen(_desktop->getPixels(), _desktop->pitch, 0, 0, _desktop->w, _desktop->h);
}
}
if (_redrawEngineCallback != nullptr)
_redrawEngineCallback(_engineR);
}