diff options
author | Paul Gilbert | 2018-11-14 20:14:42 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
commit | f29147ba22b994a8985a6831290aa899a262af0c (patch) | |
tree | a69e4a230ed6a0577843106c4a14e373fc08cad9 /engines | |
parent | a1d355d0be8dfe0e3c1227a8f17ada609041ece4 (diff) | |
download | scummvm-rg350-f29147ba22b994a8985a6831290aa899a262af0c.tar.gz scummvm-rg350-f29147ba22b994a8985a6831290aa899a262af0c.tar.bz2 scummvm-rg350-f29147ba22b994a8985a6831290aa899a262af0c.zip |
GLK: Fix showing unicode input lines
Diffstat (limited to 'engines')
-rw-r--r-- | engines/glk/window_text_buffer.cpp | 4 | ||||
-rw-r--r-- | engines/glk/window_text_grid.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/window_text_buffer.cpp b/engines/glk/window_text_buffer.cpp index 36d8c6e298..21de0d9038 100644 --- a/engines/glk/window_text_buffer.cpp +++ b/engines/glk/window_text_buffer.cpp @@ -663,6 +663,7 @@ void TextBufferWindow::requestLineEventUni(glui32 *buf, glui32 maxlen, glui32 in int pw; + _lineRequestUni = true; gli_tts_flush(); // because '>' prompt is ugly without extra space @@ -693,9 +694,6 @@ void TextBufferWindow::requestLineEventUni(glui32 *buf, glui32 maxlen, glui32 in putTextUni(buf, initlen, _inCurs, 0); } - // WORKAROUND: Mark bottom line as dirty so caret will be drawn - _lines[0]._dirty = true; - _echoLineInput = _echoLineInputBase; if (_lineTerminatorsBase && _termCt) { diff --git a/engines/glk/window_text_grid.cpp b/engines/glk/window_text_grid.cpp index e16c9bd79a..3ee8198703 100644 --- a/engines/glk/window_text_grid.cpp +++ b/engines/glk/window_text_grid.cpp @@ -272,6 +272,8 @@ void TextGridWindow::requestLineEventUni(glui32 *buf, glui32 maxlen, glui32 init return; } + _lineRequestUni = true; + if ((int)maxlen > (_width - _curX)) maxlen = (_width - _curX); |