From 0496ede62f8b86e1885d594e3aa5320c96b708eb Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 6 Jan 2018 14:40:02 +0100 Subject: GUI: Implement dirty-checking for widget redraws --- gui/predictivedialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/predictivedialog.cpp') diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp index 933667186e..5650fd8e94 100644 --- a/gui/predictivedialog.cpp +++ b/gui/predictivedialog.cpp @@ -995,7 +995,7 @@ void PredictiveDialog::pressEditText() { Common::strlcat(_predictiveResult, _currentWord.c_str(), sizeof(_predictiveResult)); _editText->setEditString(_predictiveResult); //_editText->setCaretPos(_prefix.size() + _currentWord.size()); - _editText->draw(); + _editText->markAsDirty(); } } // namespace GUI -- cgit v1.2.3