diff options
author | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
commit | ebd916be3def20902cf19ffd16555074728eb9c3 (patch) | |
tree | c7748d7612a61b9558ffd10ffb176e34584f2376 /src/news_gui.cpp | |
parent | 5de9cc46b50b8e677395543c10b26b59c860212b (diff) | |
download | openttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz |
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 455c16907..8c3c50afa 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -690,7 +690,7 @@ void AddNewsItem(StringID string, NewsSubtype subtype, NewsReferenceType reftype ni->next = NULL; _latest_news = ni; - InvalidateWindow(WC_MESSAGE_HISTORY, 0); + SetWindowDirty(WC_MESSAGE_HISTORY, 0); } /** Delete a news item from the queue */ @@ -724,7 +724,7 @@ static void DeleteNewsItem(NewsItem *ni) _total_news--; delete ni; - InvalidateWindow(WC_MESSAGE_HISTORY, 0); + SetWindowDirty(WC_MESSAGE_HISTORY, 0); } void DeleteVehicleNews(VehicleID vid, StringID news) @@ -1160,7 +1160,7 @@ struct MessageOptionsWindow : Window { case WIDGET_NEWSOPT_SOUNDTICKER: // Change ticker sound on/off _news_ticker_sound ^= 1; this->OnInvalidateData(0); - this->InvalidateWidget(widget); + this->SetWidgetDirty(widget); break; default: { // Clicked on the [<] .. [>] widgets |