summaryrefslogtreecommitdiff
path: root/src/company_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/company_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/company_gui.cpp')
-rw-r--r--src/company_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index a87ac234e..3fac53cc4 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -1665,7 +1665,7 @@ struct CompanyWindow : Window
SetObjectToPlaceWnd(SPR_CURSOR_HQ, PAL_NONE, HT_RECT, this);
SetTileSelectSize(2, 2);
this->LowerWidget(CW_WIDGET_BUILD_VIEW_HQ);
- this->InvalidateWidget(CW_WIDGET_BUILD_VIEW_HQ);
+ this->SetWidgetDirty(CW_WIDGET_BUILD_VIEW_HQ);
} else {
if (_ctrl_pressed) {
ShowExtraViewPortWindow(tile);
@@ -1680,7 +1680,7 @@ struct CompanyWindow : Window
SetObjectToPlaceWnd(SPR_CURSOR_HQ, PAL_NONE, HT_RECT, this);
SetTileSelectSize(2, 2);
this->LowerWidget(CW_WIDGET_RELOCATE_HQ);
- this->InvalidateWidget(CW_WIDGET_RELOCATE_HQ);
+ this->SetWidgetDirty(CW_WIDGET_RELOCATE_HQ);
break;
case CW_WIDGET_BUY_SHARE: