aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/windows.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-04-28 14:50:01 +1000
committerPaul Gilbert2019-04-28 14:50:01 +1000
commit70febd034a6ff16c2945c52198386729a75a68e2 (patch)
tree5d61675bd2634a3a1aa7f80d37b77d0aff7c98f8 /engines/glk/windows.cpp
parent401b010ef3f488601244129b93a6ea3bf5bc3fb1 (diff)
downloadscummvm-rg350-70febd034a6ff16c2945c52198386729a75a68e2.tar.gz
scummvm-rg350-70febd034a6ff16c2945c52198386729a75a68e2.tar.bz2
scummvm-rg350-70febd034a6ff16c2945c52198386729a75a68e2.zip
GLK: Add gli registration for other object types
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() {