diff options
author | Bastien Bouclet | 2018-01-06 15:54:02 +0100 |
---|---|---|
committer | Bastien Bouclet | 2018-01-27 18:12:34 +0100 |
commit | fc37918130d8539ee57be014108729e8aca6e3f8 (patch) | |
tree | a84414cc13134ee80144e8091408cc26ea359bb0 | |
parent | 0496ede62f8b86e1885d594e3aa5320c96b708eb (diff) | |
download | scummvm-rg350-fc37918130d8539ee57be014108729e8aca6e3f8.tar.gz scummvm-rg350-fc37918130d8539ee57be014108729e8aca6e3f8.tar.bz2 scummvm-rg350-fc37918130d8539ee57be014108729e8aca6e3f8.zip |
GUI: Remove explicit redraw when scrolling the ScrollContainer
The redraw is already handled by the GUI main loop
-rw-r--r-- | gui/gui-manager.cpp | 2 | ||||
-rw-r--r-- | gui/widgets/scrollcontainer.cpp | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp index 4b91019372..08417c3b6e 100644 --- a/gui/gui-manager.cpp +++ b/gui/gui-manager.cpp @@ -592,8 +592,6 @@ void GuiManager::processEvent(const Common::Event &event, Dialog *const activeDi void GuiManager::doFullRedraw() { _redrawStatus = kRedrawFull; - redraw(); - _system->updateScreen(); } void GuiManager::giveFocusToDialog(Dialog *dialog) { diff --git a/gui/widgets/scrollcontainer.cpp b/gui/widgets/scrollcontainer.cpp index 0f3c96dcb6..00eadff78d 100644 --- a/gui/widgets/scrollcontainer.cpp +++ b/gui/widgets/scrollcontainer.cpp @@ -102,7 +102,6 @@ void ScrollContainerWidget::handleCommand(CommandSender *sender, uint32 cmd, uin case kSetPositionCmd: _scrolledY = _verticalScroll->_currentPos; reflowLayout(); - markAsDirty(); g_gui.doFullRedraw(); break; } |