summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-22 14:39:20 +0000
committerrubidium <rubidium@openttd.org>2009-03-22 14:39:20 +0000
commit9038733f1aa4f3203b229ac6350833f5af5b016a (patch)
tree297239fff1bd8ddcea1c5fc7722ebca4d3e9f3e0 /src/news_gui.cpp
parent22d4270ea8664975384198353c40f4fc859dd5f1 (diff)
downloadopenttd-9038733f1aa4f3203b229ac6350833f5af5b016a.tar.xz
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 0e274b95a..7628cf211 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -180,7 +180,7 @@ struct NewsWindow : Window {
GfxFillRect(left, top, right, top, 0xD7);
GfxFillRect(left, bottom, right, bottom, 0xD7);
- DrawString(left + 2, top + 1, STR_00C6, TC_FROMSTRING);
+ DrawString(left + 2, right - 2, top + 1, STR_00C6, TC_FROMSTRING);
}
virtual void OnPaint()
@@ -197,10 +197,10 @@ struct NewsWindow : Window {
break;
}
- DrawString(2, 1, STR_00C6, TC_FROMSTRING);
+ DrawString(2, this->width - 1, 1, STR_00C6, TC_FROMSTRING);
SetDParam(0, this->ni->date);
- DrawString(1, this->width - 1, 1, STR_01FF, TC_FROMSTRING, SA_RIGHT);
+ DrawString(2, this->width - 1, 1, STR_01FF, TC_FROMSTRING, SA_RIGHT);
if (!(this->ni->flags & NF_VIEWPORT)) {
CopyInDParam(0, this->ni->params, lengthof(this->ni->params));
@@ -715,7 +715,7 @@ struct MessageHistoryWindow : Window {
for (int n = this->vscroll.cap; n > 0; n--) {
SetDParam(0, ni->date);
- DrawString(4, y, STR_SHORT_DATE, TC_WHITE);
+ DrawString(4, 82, y, STR_SHORT_DATE, TC_WHITE);
DrawNewsString(82, y, TC_WHITE, ni, this->width - 95);
y += 12;