diff options
author | frosch <frosch@openttd.org> | 2010-06-07 19:56:32 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-07 19:56:32 +0000 |
commit | 38b8259f3b85b91a1a4a4b1fbbff1a35c708810e (patch) | |
tree | b054a50ccd65b11d6f4f279a6a9b55021469bc57 /src/news_gui.cpp | |
parent | eb02ce0573aa9b4e6305f77b78c8263cbbaa9c7f (diff) | |
download | openttd-38b8259f3b85b91a1a4a4b1fbbff1a35c708810e.tar.xz |
(svn r19943) -Fix [FS#3865]: Disallow moving of vehicle news window.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index d90b8eb3a..b73670175 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -193,10 +193,10 @@ static const WindowDesc _thin_news_desc( /* Small news items. */ static const NWidgetPart _nested_small_news_widgets[] = { - /* Caption + close box */ + /* Caption + close box. The caption is no WWT_CAPTION as the window shall not be moveable and so on. */ NWidget(NWID_HORIZONTAL), NWidget(WWT_CLOSEBOX, COLOUR_LIGHT_BLUE, NTW_CLOSEBOX), - NWidget(WWT_CAPTION, COLOUR_LIGHT_BLUE, NTW_CAPTION), SetDataTip(STR_NEWS_MESSAGE_CAPTION, STR_NULL), + NWidget(WWT_EMPTY, COLOUR_LIGHT_BLUE, NTW_CAPTION), SetFill(1, 0), EndContainer(), /* Main part */ @@ -394,9 +394,13 @@ struct NewsWindow : Window { virtual void DrawWidget(const Rect &r, int widget) const { switch (widget) { + case NTW_CAPTION: + DrawCaption(r, COLOUR_LIGHT_BLUE, this->owner, STR_NEWS_MESSAGE_CAPTION); + break; + case NTW_PANEL: this->DrawNewsBorder(r); - return; + break; case NTW_MESSAGE: CopyInDParam(0, this->ni->params, lengthof(this->ni->params)); |