From b242abd0295621d797f902bfaa6df9cc439657f2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 4 Aug 2019 09:56:30 -0700 Subject: GLK: FROTZ: Fix positioning of Arthur title screen --- engines/glk/frotz/windows.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp index d3748b5849..6e279193bd 100644 --- a/engines/glk/frotz/windows.cpp +++ b/engines/glk/frotz/windows.cpp @@ -42,12 +42,17 @@ Window &Windows::operator[](uint idx) { } void Windows::setup(bool isVersion6) { + MonoFontInfo &mi = g_vm->_conf->_monoInfo; + if (isVersion6) { // For graphic games we have a background window covering the entire screen for greater // flexibility of wher we draw pictures, and the lower and upper areas sit on top of them _background = g_vm->glk_window_open(0, 0, 0, wintype_Graphics, 0); _background->setBackgroundColor(0xffffff); + Window &w = _windows[0]; + w[X_SIZE] = g_system->getWidth() / mi._cellW; + w[Y_SIZE] = g_system->getHeight() / mi._cellH; } else { _lower = g_vm->glk_window_open(0, 0, 0, wintype_TextBuffer, 0); _upper = g_vm->glk_window_open(_lower, winmethod_Above | winmethod_Fixed, 0, wintype_TextGrid, 0); @@ -57,7 +62,6 @@ void Windows::setup(bool isVersion6) { g_vm->glk_set_window(_lower); } - MonoFontInfo &mi = g_vm->_conf->_monoInfo; for (size_t idx = 0; idx < 8; ++idx) { Window &w = _windows[idx]; w._windows = this; -- cgit v1.2.3