summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-30 21:07:54 +0000
committerrubidium <rubidium@openttd.org>2009-09-30 21:07:54 +0000
commitc847f5c04e15920d6f4d9a80e181ffc63e61264a (patch)
tree9f80b07df68b2aa6c53c11a8be64e4cc4d690737 /src/news_gui.cpp
parent00324050930287e25d9a616f12cdf1421c3445e7 (diff)
downloadopenttd-c847f5c04e15920d6f4d9a80e181ffc63e61264a.tar.xz
(svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 0cb3d7ca1..f704ca1d4 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -996,7 +996,6 @@ struct MessageHistoryWindow : Window {
virtual void OnResize(Point delta)
{
this->vscroll.UpdateCapacity(delta.y / this->line_height);
- this->OnInvalidateData(0);
}
};
@@ -1160,8 +1159,7 @@ struct MessageOptionsWindow : Window {
case WIDGET_NEWSOPT_SOUNDTICKER: // Change ticker sound on/off
_news_ticker_sound ^= 1;
- this->OnInvalidateData(0);
- this->SetWidgetDirty(widget);
+ this->InvalidateData();
break;
default: { // Clicked on the [<] .. [>] widgets
@@ -1187,8 +1185,7 @@ struct MessageOptionsWindow : Window {
this->SetMessageButtonStates(index, i);
_news_type_data[i].display = (NewsDisplay)index;
}
- this->OnInvalidateData(0);
- this->SetDirty();
+ this->InvalidateData();
}
};