[Scummvm-git-logs] scummvm master -> b242abd0295621d797f902bfaa6df9cc439657f2

dreammaster paulfgilbert at gmail.com
Sun Aug 4 19:02:41 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b242abd029 GLK: FROTZ: Fix positioning of Arthur title screen


Commit: b242abd0295621d797f902bfaa6df9cc439657f2
    https://github.com/scummvm/scummvm/commit/b242abd0295621d797f902bfaa6df9cc439657f2
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-08-04T09:56:37-07:00

Commit Message:
GLK: FROTZ: Fix positioning of Arthur title screen

Changed paths:
    engines/glk/frotz/windows.cpp


diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp
index d3748b5..6e27919 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;





More information about the Scummvm-git-logs mailing list