aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/windows.cpp')
-rw-r--r--engines/glk/windows.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/glk/windows.cpp b/engines/glk/windows.cpp
index d01f9defa3..ffb1fbf906 100644
--- a/engines/glk/windows.cpp
+++ b/engines/glk/windows.cpp
@@ -517,10 +517,12 @@ Window::Window(Windows *windows, uint rock) : _windows(windows), _rock(rock),
_bgColor = g_conf->_windowColor;
_fgColor = g_conf->_propInfo._moreColor;
- _dispRock.num = 0;
Streams &streams = *g_vm->_streams;
_stream = streams.openWindowStream(this);
+
+ if (g_vm->gli_register_obj)
+ _dispRock = (*g_vm->gli_register_obj)(this, gidisp_Class_Window);
}
Window::~Window() {