diff options
| author | Paul Gilbert | 2018-10-27 21:54:28 -0700 |
|---|---|---|
| committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
| commit | 6807e646b48a7b3850496bda890809b53a3093f5 (patch) | |
| tree | 8e664d108a8a21520079000866c807a4f78593af | |
| parent | e5854a6bd35fb29912bc185af32a3443598dc3cb (diff) | |
| download | scummvm-rg350-6807e646b48a7b3850496bda890809b53a3093f5.tar.gz scummvm-rg350-6807e646b48a7b3850496bda890809b53a3093f5.tar.bz2 scummvm-rg350-6807e646b48a7b3850496bda890809b53a3093f5.zip | |
GLK: Fix initialization of text buffer window lines
| -rw-r--r-- | engines/gargoyle/window_text_buffer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |
