Skip to content

Commit

Permalink
GUI: Remove explicit redraw when scrolling the ScrollContainer
Browse files Browse the repository at this point in the history
The redraw is already handled by the GUI main loop
  • Loading branch information
bgK committed Jan 27, 2018
1 parent 0496ede commit fc37918
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions gui/gui-manager.cpp
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion gui/widgets/scrollcontainer.cpp
Expand Up @@ -102,7 +102,6 @@ void ScrollContainerWidget::handleCommand(CommandSender *sender, uint32 cmd, uin
case kSetPositionCmd:
_scrolledY = _verticalScroll->_currentPos;
reflowLayout();
markAsDirty();
g_gui.doFullRedraw();
break;
}
Expand Down

0 comments on commit fc37918

Please sign in to comment.