mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 17:20:30 +00:00
GRAPHICS: MACGUI: bring kWMModeNoDesktop flag useful again
This commit is contained in:
parent
c8fd1e17f0
commit
803cd6d715
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user