From ebd916be3def20902cf19ffd16555074728eb9c3 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 13 Sep 2009 19:15:59 +0000 Subject: (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. --- src/ai/ai_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ai/ai_gui.cpp') 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(); -- cgit v1.2.3-54-g00ecf