summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-26 15:22:18 +0000
committeralberth <alberth@openttd.org>2010-11-26 15:22:18 +0000
commitf5c6fd1a2582be29c9a5376ccb638781fbf355f7 (patch)
tree8409730a69d50fb7fca3002c94102bb37e7c14b1 /src/news_gui.cpp
parent61637f493afd89ebab58ae6282b80fe326db33af (diff)
downloadopenttd-f5c6fd1a2582be29c9a5376ccb638781fbf355f7.tar.xz
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 03033beae..e848f3dd5 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -348,11 +348,6 @@ struct NewsWindow : Window {
return pt;
}
- virtual void OnPaint()
- {
- this->DrawWidgets();
- }
-
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)
{
StringID str = STR_NULL;
@@ -1136,11 +1131,6 @@ struct MessageOptionsWindow : Window {
this->SetWidgetDisabledState(element + WIDGET_NEWSOPT_START_OPTION + 2, value == 2);
}
- virtual void OnPaint()
- {
- this->DrawWidgets();
- }
-
virtual void DrawWidget(const Rect &r, int widget) const
{
if (widget >= WIDGET_NEWSOPT_START_OPTION && widget < WIDGET_NEWSOPT_END_OPTION && (widget - WIDGET_NEWSOPT_START_OPTION) % MOS_WIDG_PER_SETTING == 1) {