diff options
author | frosch <frosch@openttd.org> | 2011-12-13 18:27:04 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-12-13 18:27:04 +0000 |
commit | 19c9fe96f640249c33dbc8993cc3a9049bd78d20 (patch) | |
tree | 007321b14edf736fc3f4084dedcddc8535287b37 /src | |
parent | 7f8162c324551e87cb2218bd0023fa7cfbe344b0 (diff) | |
download | openttd-19c9fe96f640249c33dbc8993cc3a9049bd78d20.tar.xz |
(svn r23509) -Fix [FS#4884]: Drawing of newspaper headlines used different padding than the initial sizing of the window.
Diffstat (limited to 'src')
-rw-r--r-- | src/news_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 51b4ee9e4..07a82c82d 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -103,7 +103,7 @@ static const NWidgetPart _nested_normal_news_widgets[] = { NWidget(NWID_SPACER), SetFill(0, 1), EndContainer(), EndContainer(), - NWidget(WWT_EMPTY, COLOUR_WHITE, NTW_MESSAGE), SetMinimalSize(428, 154), SetPadding(0, 1, 1, 1), + NWidget(WWT_EMPTY, COLOUR_WHITE, NTW_MESSAGE), SetMinimalSize(428, 154), SetPadding(0, 5, 1, 5), EndContainer(), }; @@ -183,7 +183,7 @@ static const NWidgetPart _nested_thin_news_widgets[] = { NWidget(NWID_SPACER), SetFill(0, 1), EndContainer(), EndContainer(), - NWidget(WWT_EMPTY, COLOUR_WHITE, NTW_MESSAGE), SetMinimalSize(428, 48), SetFill(1, 0), SetPadding(0, 1, 0, 1), + NWidget(WWT_EMPTY, COLOUR_WHITE, NTW_MESSAGE), SetMinimalSize(428, 48), SetFill(1, 0), SetPadding(0, 5, 0, 5), NWidget(NWID_VIEWPORT, INVALID_COLOUR, NTW_VIEWPORT), SetMinimalSize(426, 70), SetPadding(1, 2, 2, 2), EndContainer(), }; @@ -208,7 +208,7 @@ static const NWidgetPart _nested_small_news_widgets[] = { NWidget(WWT_INSET, COLOUR_LIGHT_BLUE, NTW_INSET), SetPadding(2, 2, 2, 2), NWidget(NWID_VIEWPORT, INVALID_COLOUR, NTW_VIEWPORT), SetPadding(1, 1, 1, 1), SetMinimalSize(274, 47), SetFill(1, 0), EndContainer(), - NWidget(WWT_EMPTY, COLOUR_WHITE, NTW_MESSAGE), SetMinimalSize(275, 20), SetFill(1, 0), + NWidget(WWT_EMPTY, COLOUR_WHITE, NTW_MESSAGE), SetMinimalSize(275, 20), SetFill(1, 0), SetPadding(0, 5, 0, 5), EndContainer(), }; @@ -405,7 +405,7 @@ struct NewsWindow : Window { case NTW_MESSAGE: CopyInDParam(0, this->ni->params, lengthof(this->ni->params)); - DrawStringMultiLine(r.left + 2, r.right - 2, r.top, r.bottom, this->ni->string_id, TC_FROMSTRING, SA_CENTER); + DrawStringMultiLine(r.left, r.right, r.top, r.bottom, this->ni->string_id, TC_FROMSTRING, SA_CENTER); break; case NTW_MGR_FACE: { |