From 34f842e4b828b1aaf0149a67bf1ad3bc04c26b09 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 17 Aug 2019 19:11:30 -0700 Subject: GLK: FROTZ: Fix creating text vs buffer windows --- engines/glk/frotz/windows.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp index bb5f8042c5..be65e8eb06 100644 --- a/engines/glk/frotz/windows.cpp +++ b/engines/glk/frotz/windows.cpp @@ -315,6 +315,7 @@ void Window::setStyle(int style) { if (g_vm->gos_linepending && _windows->currWin() == g_vm->gos_linewin) return; + _currStyle = style; updateStyle(); } @@ -380,7 +381,7 @@ void Window::createGlkWindow() { _windows->showTextWindows(); // Create a new window - if (_index == 1) { + if (_index != 0 || (_currStyle & FIXED_WIDTH_STYLE)) { // Text grid window _win = g_vm->glk_window_open(g_vm->glk_window_get_root(), winmethod_Arbitrary | winmethod_Fixed, 0, wintype_TextGrid, 0); -- cgit v1.2.3