summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-18 19:24:40 +0000
committerrubidium <rubidium@openttd.org>2010-11-18 19:24:40 +0000
commit16c90ed48bf8e840d303ff3f52984e91d6e22776 (patch)
treee76a21ec752ded6306db20dc4b2898e529b4b459 /src/news_gui.cpp
parent60e153002c8684c086c3a48e4a252fd6389db031 (diff)
downloadopenttd-16c90ed48bf8e840d303ff3f52984e91d6e22776.tar.xz
(svn r21244) -Fix [FS#4240] (r21179): the news message always stayed in the middle; let it follow the setting of the statusbar instead
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 4e2ebd4f9..03033beae 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -328,6 +328,8 @@ struct NewsWindow : Window {
nvp->disp_flags |= ND_SHADE_DIMMED;
}
}
+
+ PositionNewsMessage(this);
}
void DrawNewsBorder(const Rect &r) const
@@ -342,7 +344,7 @@ struct NewsWindow : Window {
virtual Point OnInitialPosition(const WindowDesc *desc, int16 sm_width, int16 sm_height, int window_number)
{
- Point pt = { (_screen.width - max(sm_width, desc->default_width)) / 2, _screen.height };
+ Point pt = { 0, _screen.height };
return pt;
}