summaryrefslogtreecommitdiff
path: root/src/order_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/order_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/order_gui.cpp')
-rw-r--r--src/order_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 7783931ce..00b5843dd 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -456,7 +456,7 @@ private:
*/
void OrderClick_Goto(int i)
{
- this->InvalidateWidget(ORDER_WIDGET_GOTO);
+ this->SetWidgetDirty(ORDER_WIDGET_GOTO);
this->ToggleWidgetLoweredState(ORDER_WIDGET_GOTO);
if (this->IsWidgetLowered(ORDER_WIDGET_GOTO)) {
_place_clicked_vehicle = NULL;
@@ -521,7 +521,7 @@ private:
*/
void OrderClick_Conditional(int i)
{
- this->InvalidateWidget(ORDER_WIDGET_GOTO);
+ this->SetWidgetDirty(ORDER_WIDGET_GOTO);
this->LowerWidget(ORDER_WIDGET_GOTO);
SetObjectToPlaceWnd(ANIMCURSOR_PICKSTATION, PAL_NONE, HT_RECT, this);
this->goto_type = OPOS_CONDITIONAL;
@@ -560,7 +560,7 @@ private:
non_stop = order->GetNonStopType() ^ ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS;
}
- this->InvalidateWidget(ORDER_WIDGET_NON_STOP);
+ this->SetWidgetDirty(ORDER_WIDGET_NON_STOP);
DoCommandP(this->vehicle->tile, this->vehicle->index + (sel_ord << 16), MOF_NON_STOP | non_stop << 4, CMD_MODIFY_ORDER | CMD_MSG(STR_ERROR_CAN_T_MODIFY_THIS_ORDER));
}
@@ -1138,7 +1138,7 @@ public:
}
}
this->RaiseWidget(ORDER_WIDGET_GOTO);
- this->InvalidateWidget(ORDER_WIDGET_GOTO);
+ this->SetWidgetDirty(ORDER_WIDGET_GOTO);
}
virtual void OnMouseLoop()
@@ -1233,7 +1233,7 @@ public:
for (uint i = 0; i < this->widget_count; i++) {
if (this->IsWidgetLowered(i) && i != ORDER_WIDGET_GOTO) {
this->RaiseWidget(i);
- this->InvalidateWidget(i);
+ this->SetWidgetDirty(i);
}
}
}