From 6807e646b48a7b3850496bda890809b53a3093f5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 27 Oct 2018 21:54:28 -0700 Subject: GLK: Fix initialization of text buffer window lines --- engines/gargoyle/window_text_buffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines') diff --git a/engines/gargoyle/window_text_buffer.cpp b/engines/gargoyle/window_text_buffer.cpp index c322127b9f..818bcf0b9e 100644 --- a/engines/gargoyle/window_text_buffer.cpp +++ b/engines/gargoyle/window_text_buffer.cpp @@ -45,6 +45,10 @@ TextBufferWindow::TextBufferWindow(Windows *windows, uint32 rock) : Window(windo _type = wintype_TextBuffer; Common::fill(&_history[0], &_history[HISTORYLEN], nullptr); + _lines.resize(SCROLLBACK); + _chars = _lines[0]._chars; + _attrs = _lines[0]._attrs; + Common::copy(&g_conf->_tStyles[0], &g_conf->_tStyles[style_NUMSTYLES], _styles); } -- cgit v1.2.3