Skip to content

Commit

Permalink
GLK: FROTZ: Fix creating text vs buffer windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 18, 2019
1 parent f14a7f1 commit 34f842e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/glk/frotz/windows.cpp
Expand Up @@ -315,6 +315,7 @@ void Window::setStyle(int style) {
if (g_vm->gos_linepending && _windows->currWin() == g_vm->gos_linewin)
return;

_currStyle = style;
updateStyle();
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 34f842e

Please sign in to comment.