mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
GRAPHICS: MACGUI: bring kWMModeNoDesktop flag useful again
This commit is contained in:
parent
c8fd1e17f0
commit
803cd6d715
@ -546,21 +546,22 @@ void MacWindowManager::draw() {
|
||||
Common::Rect bounds = getScreenBounds();
|
||||
|
||||
if (_fullRefresh) {
|
||||
Common::Rect screen = getScreenBounds();
|
||||
if (_desktop->w != screen.width() || _desktop->h != screen.height()) {
|
||||
_desktop->free();
|
||||
_desktop->create(screen.width(), screen.height(), _pixelformat);
|
||||
drawDesktop();
|
||||
}
|
||||
if (!(_mode & kWMModeNoDesktop)) {
|
||||
Common::Rect screen = getScreenBounds();
|
||||
if (_desktop->w != screen.width() || _desktop->h != screen.height()) {
|
||||
_desktop->free();
|
||||
_desktop->create(screen.width(), screen.height(), _pixelformat);
|
||||
drawDesktop();
|
||||
}
|
||||
|
||||
if (_screen) {
|
||||
_screen->blitFrom(*_desktop, Common::Point(0, 0));
|
||||
g_system->copyRectToScreen(_screen->getPixels(), _screen->pitch, 0, 0, _screen->w, _screen->h);
|
||||
} else {
|
||||
_screenCopyPauseToken = new PauseToken(pauseEngine());
|
||||
g_system->copyRectToScreen(_desktop->getPixels(), _desktop->pitch, 0, 0, _desktop->w, _desktop->h);
|
||||
if (_screen) {
|
||||
_screen->blitFrom(*_desktop, Common::Point(0, 0));
|
||||
g_system->copyRectToScreen(_screen->getPixels(), _screen->pitch, 0, 0, _screen->w, _screen->h);
|
||||
} else {
|
||||
_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