summaryrefslogtreecommitdiff
path: root/src/ai
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/ai
parent5de9cc46b50b8e677395543c10b26b59c860212b (diff)
downloadopenttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index bdbcbea2a..b30865915 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -153,7 +153,7 @@ struct AIListWindow : public Window {
for (int i = 0; i < this->selected; i++) it++;
AIConfig::GetConfig(slot)->ChangeAI((*it).second->GetName(), (*it).second->GetVersion());
}
- InvalidateWindow(WC_GAME_OPTIONS, 0);
+ SetWindowDirty(WC_GAME_OPTIONS, 0);
}
virtual void OnClick(Point pt, int widget)
@@ -767,7 +767,7 @@ struct AIDebugWindow : public Window {
this->vscroll.SetCount(scroll_count);
/* We need a repaint */
- this->InvalidateWidget(AID_WIDGET_SCROLLBAR);
+ this->SetWidgetDirty(AID_WIDGET_SCROLLBAR);
}
if (log == NULL) return;
@@ -783,8 +783,8 @@ struct AIDebugWindow : public Window {
this->vscroll.SetPosition(scroll_pos);
/* We need a repaint */
- this->InvalidateWidget(AID_WIDGET_SCROLLBAR);
- this->InvalidateWidget(AID_WIDGET_LOG_PANEL);
+ this->SetWidgetDirty(AID_WIDGET_SCROLLBAR);
+ this->SetWidgetDirty(AID_WIDGET_LOG_PANEL);
}
}
this->last_vscroll_pos = this->vscroll.GetPosition();