aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2019-08-04 09:56:30 -0700
committerPaul Gilbert2019-08-04 09:56:37 -0700
commitb242abd0295621d797f902bfaa6df9cc439657f2 (patch)
tree401aee0cc9fcddc4e9c542ca9537ce46e8072e79 /engines
parent3bc1c80797bf9664b33b9c594f6b644f1cdac0e8 (diff)
downloadscummvm-rg350-b242abd0295621d797f902bfaa6df9cc439657f2.tar.gz
scummvm-rg350-b242abd0295621d797f902bfaa6df9cc439657f2.tar.bz2
scummvm-rg350-b242abd0295621d797f902bfaa6df9cc439657f2.zip
GLK: FROTZ: Fix positioning of Arthur title screen
Diffstat (limited to 'engines')
-rw-r--r--engines/glk/frotz/windows.cpp6
1 files changed, 5 insertions, 1 deletions
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;