diff options
author | Bastien Bouclet | 2018-01-06 16:13:29 +0100 |
---|---|---|
committer | Bastien Bouclet | 2018-01-27 18:12:34 +0100 |
commit | 5878c618c931f6c600dda0b156d96f909013779b (patch) | |
tree | 1345c8957c22e654508405d3ed764dd71506844b /gui/widgets | |
parent | fc37918130d8539ee57be014108729e8aca6e3f8 (diff) | |
download | scummvm-rg350-5878c618c931f6c600dda0b156d96f909013779b.tar.gz scummvm-rg350-5878c618c931f6c600dda0b156d96f909013779b.tar.bz2 scummvm-rg350-5878c618c931f6c600dda0b156d96f909013779b.zip |
GUI: Remove Dialog::markAsDirty to expose full GUI redraws
Diffstat (limited to 'gui/widgets')
-rw-r--r-- | gui/widgets/list.cpp | 2 | ||||
-rw-r--r-- | gui/widgets/scrollcontainer.cpp | 2 | ||||
-rw-r--r-- | gui/widgets/tab.cpp | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp index 16d91f9a1e..b4a5f4bf0b 100644 --- a/gui/widgets/list.cpp +++ b/gui/widgets/list.cpp @@ -744,7 +744,7 @@ void ListWidget::setFilter(const String &filter, bool redraw) { // Such a widget could also (optionally) draw a border (or even different // kinds of borders) around the objects it groups; and also a 'title' // (I am borrowing these "ideas" from the NSBox class in Cocoa :). - _boss->markAsDirty(); + g_gui.scheduleTopDialogRedraw(); } } diff --git a/gui/widgets/scrollcontainer.cpp b/gui/widgets/scrollcontainer.cpp index 00eadff78d..d6b1b740fd 100644 --- a/gui/widgets/scrollcontainer.cpp +++ b/gui/widgets/scrollcontainer.cpp @@ -102,7 +102,7 @@ void ScrollContainerWidget::handleCommand(CommandSender *sender, uint32 cmd, uin case kSetPositionCmd: _scrolledY = _verticalScroll->_currentPos; reflowLayout(); - g_gui.doFullRedraw(); + g_gui.scheduleTopDialogRedraw(); break; } } diff --git a/gui/widgets/tab.cpp b/gui/widgets/tab.cpp index 9b045daf51..dfcb919264 100644 --- a/gui/widgets/tab.cpp +++ b/gui/widgets/tab.cpp @@ -154,7 +154,7 @@ void TabWidget::removeTab(int tabID) { } // Finally trigger a redraw - _boss->markAsDirty(); + g_gui.scheduleTopDialogRedraw(); } void TabWidget::setActiveTab(int tabID) { @@ -174,7 +174,7 @@ void TabWidget::setActiveTab(int tabID) { while (_lastVisibleTab < tabID) setFirstVisible(_firstVisibleTab + 1, false); - _boss->markAsDirty(); + g_gui.scheduleTopDialogRedraw(); } } @@ -246,7 +246,7 @@ void TabWidget::setFirstVisible(int tabID, bool adjustIfRoom) { computeLastVisibleTab(adjustIfRoom); - _boss->markAsDirty(); // TODO: Necessary? + g_gui.scheduleTopDialogRedraw(); // TODO: Necessary? } void TabWidget::reflowLayout() { |