mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
GRAPHICS: MACGUI: Correctly process empty inpt strings in MacTextWindow
This commit is contained in:
parent
dbc247cc3f
commit
73b6b12cbb
@ -111,7 +111,7 @@ void MacTextWindow::drawInput() {
|
||||
|
||||
// Now recalc new text height
|
||||
_fontRef->wordWrapText(_inputText, _maxWidth, text);
|
||||
_inputTextHeight = text.size();
|
||||
_inputTextHeight = MAX(1u, text.size()); // We always have line to clean
|
||||
|
||||
// And add new input line to the text
|
||||
appendText(_inputText, _font);
|
||||
|
Loading…
x
Reference in New Issue
Block a user