aboutsummaryrefslogtreecommitdiff
path: root/engines/gargoyle/windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gargoyle/windows.cpp')
-rw-r--r--engines/gargoyle/windows.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/gargoyle/windows.cpp b/engines/gargoyle/windows.cpp
index bf126eb869..6d09d82819 100644
--- a/engines/gargoyle/windows.cpp
+++ b/engines/gargoyle/windows.cpp
@@ -80,15 +80,15 @@ Window *Windows::windowOpen(Window *splitwin, glui32 method, glui32 size,
if (!_rootWin) {
if (splitwin) {
- warning("window_open: ref must be NULL");
+ warning("window_open: ref must be nullptr");
return nullptr;
}
/* ignore method and size now */
- oldparent = NULL;
+ oldparent = nullptr;
} else {
if (!splitwin) {
- warning("window_open: ref must not be NULL");
+ warning("window_open: ref must not be nullptr");
return nullptr;
}
@@ -152,6 +152,8 @@ Window *Windows::windowOpen(Window *splitwin, glui32 method, glui32 size,
}
void Windows::windowClose(Window *win, StreamResult *result) {
+ _forceRedraw = true;
+
if (win == _rootWin || win->_parent == nullptr) {
// Close the root window, which means all windows.
_rootWin = nullptr;