diff options
author | Alexander Tkachev | 2016-06-22 17:29:01 +0600 |
---|---|---|
committer | Eugene Sandulenko | 2016-07-03 12:17:43 +0200 |
commit | 31e528c070d14baf62dc1e8570075425a2efbb42 (patch) | |
tree | 16a2bfb93fc0ac9f2d72e806489ae179f1f85117 | |
parent | 425d963bd3c927e529efdfed817960dec8de4552 (diff) | |
download | scummvm-rg350-31e528c070d14baf62dc1e8570075425a2efbb42.tar.gz scummvm-rg350-31e528c070d14baf62dc1e8570075425a2efbb42.tar.bz2 scummvm-rg350-31e528c070d14baf62dc1e8570075425a2efbb42.zip |
GUI: Make ScrollContainerWidget do full redraw
-rw-r--r-- | gui/gui-manager.cpp | 6 | ||||
-rw-r--r-- | gui/gui-manager.h | 1 | ||||
-rw-r--r-- | gui/widgets/scrollcontainer.cpp | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp index 3ce8bee020..9acd9434ff 100644 --- a/gui/gui-manager.cpp +++ b/gui/gui-manager.cpp @@ -564,6 +564,12 @@ void GuiManager::processEvent(const Common::Event &event, Dialog *const activeDi } } +void GuiManager::doFullRedraw() { + _redrawStatus = kRedrawFull; + redraw(); + _system->updateScreen(); +} + void GuiManager::giveFocusToDialog(Dialog *dialog) { int16 dialogX = _globalMousePosition.x - dialog->_x; int16 dialogY = _globalMousePosition.y - dialog->_y; diff --git a/gui/gui-manager.h b/gui/gui-manager.h index 35779215b2..4dc9af95fb 100644 --- a/gui/gui-manager.h +++ b/gui/gui-manager.h @@ -73,6 +73,7 @@ public: void runLoop(); void processEvent(const Common::Event &event, Dialog *const activeDialog); + void doFullRedraw(); bool isActive() const { return ! _dialogStack.empty(); } diff --git a/gui/widgets/scrollcontainer.cpp b/gui/widgets/scrollcontainer.cpp index f2fb21302c..fffa451ad9 100644 --- a/gui/widgets/scrollcontainer.cpp +++ b/gui/widgets/scrollcontainer.cpp @@ -83,6 +83,7 @@ void ScrollContainerWidget::handleCommand(CommandSender *sender, uint32 cmd, uin _scrolledY = _verticalScroll->_currentPos; reflowLayout(); draw(); + g_gui.doFullRedraw(); break; } } |