summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
committerfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
commitebd916be3def20902cf19ffd16555074728eb9c3 (patch)
treec7748d7612a61b9558ffd10ffb176e34584f2376 /src/toolbar_gui.cpp
parent5de9cc46b50b8e677395543c10b26b59c860212b (diff)
downloadopenttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r--src/toolbar_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index ff22ed7c8..cd3a06abb 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -1120,12 +1120,12 @@ struct MainToolbarWindow : Window {
{
if (this->IsWidgetLowered(TBN_PAUSE) != !!_pause_mode) {
this->ToggleWidgetLoweredState(TBN_PAUSE);
- this->InvalidateWidget(TBN_PAUSE);
+ this->SetWidgetDirty(TBN_PAUSE);
}
if (this->IsWidgetLowered(TBN_FASTFORWARD) != !!_fast_forward) {
this->ToggleWidgetLoweredState(TBN_FASTFORWARD);
- this->InvalidateWidget(TBN_FASTFORWARD);
+ this->SetWidgetDirty(TBN_FASTFORWARD);
}
}
@@ -1143,7 +1143,7 @@ struct MainToolbarWindow : Window {
for (uint i = TBN_SETTINGS; i < this->widget_count - 1; i++) {
if (this->IsWidgetLowered(i)) {
this->RaiseWidget(i);
- this->InvalidateWidget(i);
+ this->SetWidgetDirty(i);
}
}
}
@@ -1393,8 +1393,8 @@ public:
virtual void OnTimeout()
{
this->SetWidgetsLoweredState(false, TBSE_DATEBACKWARD, TBSE_DATEFORWARD, WIDGET_LIST_END);
- this->InvalidateWidget(TBSE_DATEBACKWARD);
- this->InvalidateWidget(TBSE_DATEFORWARD);
+ this->SetWidgetDirty(TBSE_DATEBACKWARD);
+ this->SetWidgetDirty(TBSE_DATEFORWARD);
}
virtual void OnTick()