summaryrefslogtreecommitdiff
path: root/src/road_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/road_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/road_gui.cpp')
-rw-r--r--src/road_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 90a26d97f..e7a06b8f3 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -267,7 +267,7 @@ typedef void OnButtonClick(Window *w);
static void ToggleRoadButton_Remove(Window *w)
{
w->ToggleWidgetLoweredState(RTW_REMOVE);
- w->InvalidateWidget(RTW_REMOVE);
+ w->SetWidgetDirty(RTW_REMOVE);
_remove_button_clicked = w->IsWidgetLowered(RTW_REMOVE);
SetSelectionRed(_remove_button_clicked);
}
@@ -447,12 +447,12 @@ struct BuildRoadToolbarWindow : Window {
switch (clicked_widget) {
case RTW_REMOVE:
this->RaiseWidget(RTW_ONE_WAY);
- this->InvalidateWidget(RTW_ONE_WAY);
+ this->SetWidgetDirty(RTW_ONE_WAY);
break;
case RTW_ONE_WAY:
this->RaiseWidget(RTW_REMOVE);
- this->InvalidateWidget(RTW_REMOVE);
+ this->SetWidgetDirty(RTW_REMOVE);
break;
case RTW_BUS_STATION:
@@ -533,8 +533,8 @@ struct BuildRoadToolbarWindow : Window {
RTW_REMOVE,
RTW_ONE_WAY,
WIDGET_LIST_END);
- this->InvalidateWidget(RTW_REMOVE);
- this->InvalidateWidget(RTW_ONE_WAY);
+ this->SetWidgetDirty(RTW_REMOVE);
+ this->SetWidgetDirty(RTW_ONE_WAY);
DeleteWindowById(WC_BUS_STATION, TRANSPORT_ROAD);
DeleteWindowById(WC_TRUCK_STATION, TRANSPORT_ROAD);