aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorBastien Bouclet2018-01-06 15:54:02 +0100
committerBastien Bouclet2018-01-27 18:12:34 +0100
commitfc37918130d8539ee57be014108729e8aca6e3f8 (patch)
treea84414cc13134ee80144e8091408cc26ea359bb0 /gui
parent0496ede62f8b86e1885d594e3aa5320c96b708eb (diff)
downloadscummvm-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
Diffstat (limited to 'gui')
-rw-r--r--gui/gui-manager.cpp2
-rw-r--r--gui/widgets/scrollcontainer.cpp1
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;
}