mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
GRAPHICS: MACGUI: Clear preallocated screen in WM when override is requested
This commit is contained in:
parent
ace0bbdceb
commit
a29f1fdbb4
@ -149,7 +149,7 @@ static void menuTimerHandler(void *refCon);
|
||||
|
||||
MacWindowManager::MacWindowManager(uint32 mode) {
|
||||
_screen = 0;
|
||||
_screenCopy = 0;
|
||||
_screenCopy = nullptr;
|
||||
_lastId = 0;
|
||||
_activeWindow = -1;
|
||||
_needsRemoval = false;
|
||||
|
@ -107,7 +107,7 @@ public:
|
||||
* Note that this method should be called as soon as the WM is created.
|
||||
* @param screen Surface on which the desktop will be drawn.
|
||||
*/
|
||||
void setScreen(ManagedSurface *screen) { _screen = screen; }
|
||||
void setScreen(ManagedSurface *screen) { _screen = screen; delete _screenCopy; _screenCopy = nullptr; }
|
||||
/**
|
||||
* Create a window with the given parameters.
|
||||
* Note that this method allocates the necessary memory for the window.
|
||||
|
Loading…
x
Reference in New Issue
Block a user