summaryrefslogtreecommitdiff
path: root/src/rail_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/rail_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/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 3d29c624f..9574683bb 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -314,7 +314,7 @@ static void ToggleRailButton_Remove(Window *w)
{
DeleteWindowById(WC_SELECT_STATION, 0);
w->ToggleWidgetLoweredState(RTW_REMOVE);
- w->InvalidateWidget(RTW_REMOVE);
+ w->SetWidgetDirty(RTW_REMOVE);
_remove_button_clicked = w->IsWidgetLowered(RTW_REMOVE);
SetSelectionRed(_remove_button_clicked);
}
@@ -795,7 +795,7 @@ struct BuildRailToolbarWindow : Window {
{
this->RaiseButtons();
this->DisableWidget(RTW_REMOVE);
- this->InvalidateWidget(RTW_REMOVE);
+ this->SetWidgetDirty(RTW_REMOVE);
DeleteWindowById(WC_BUILD_SIGNAL, TRANSPORT_RAIL);
DeleteWindowById(WC_BUILD_STATION, TRANSPORT_RAIL);
@@ -1601,14 +1601,14 @@ public:
case BSW_DRAG_SIGNALS_DENSITY_DECREASE:
if (_settings_client.gui.drag_signals_density > 1) {
_settings_client.gui.drag_signals_density--;
- InvalidateWindow(WC_GAME_OPTIONS, 0);
+ SetWindowDirty(WC_GAME_OPTIONS, 0);
}
break;
case BSW_DRAG_SIGNALS_DENSITY_INCREASE:
if (_settings_client.gui.drag_signals_density < 20) {
_settings_client.gui.drag_signals_density++;
- InvalidateWindow(WC_GAME_OPTIONS, 0);
+ SetWindowDirty(WC_GAME_OPTIONS, 0);
}
break;