diff options
author | Eugene Sandulenko | 2019-12-16 01:00:17 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-16 01:01:22 +0100 |
commit | a29f1fdbb487a09e1c82d9dcef6b46277b4bc733 (patch) | |
tree | ff1d8f82e73ea8f4e0294b659bc34079de3e5e06 /graphics/macgui | |
parent | ace0bbdceb0b9319a33a6e4211d6dcbddb75b61a (diff) | |
download | scummvm-rg350-a29f1fdbb487a09e1c82d9dcef6b46277b4bc733.tar.gz scummvm-rg350-a29f1fdbb487a09e1c82d9dcef6b46277b4bc733.tar.bz2 scummvm-rg350-a29f1fdbb487a09e1c82d9dcef6b46277b4bc733.zip |
GRAPHICS: MACGUI: Clear preallocated screen in WM when override is requested
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/macwindowmanager.cpp | 2 | ||||
-rw-r--r-- | graphics/macgui/macwindowmanager.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp index 7e7c1b1627..900c06dff5 100644 --- a/graphics/macgui/macwindowmanager.cpp +++ b/graphics/macgui/macwindowmanager.cpp @@ -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; diff --git a/graphics/macgui/macwindowmanager.h b/graphics/macgui/macwindowmanager.h index 2e3e3128c3..7e195f07dc 100644 --- a/graphics/macgui/macwindowmanager.h +++ b/graphics/macgui/macwindowmanager.h @@ -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. |