summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-12 19:59:33 +0000
committerrubidium <rubidium@openttd.org>2009-05-12 19:59:33 +0000
commitc96dac54432ef0281ed7334296448ed1620f3306 (patch)
tree19a398c2d5fe3cc8a0bbf87b329308a669b8ead9 /src
parent9e6e0c6b095cdd96fe38e7ff6442892f028a7f86 (diff)
downloadopenttd-c96dac54432ef0281ed7334296448ed1620f3306.tar.xz
(svn r16283) -Fix [FS#2890]: news ticker truncated too early
Diffstat (limited to 'src')
-rw-r--r--src/statusbar_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp
index 89b2680bd..f07e50fa0 100644
--- a/src/statusbar_gui.cpp
+++ b/src/statusbar_gui.cpp
@@ -57,7 +57,7 @@ static bool DrawScrollingStatusText(const NewsItem *ni, int pos, int width)
DrawPixelInfo *old_dpi = _cur_dpi;
_cur_dpi = &tmp_dpi;
- int x = DrawString(pos, pos + width, 0, buffer, TC_LIGHT_BLUE);
+ int x = DrawString(pos, INT16_MAX, 0, buffer, TC_LIGHT_BLUE);
_cur_dpi = old_dpi;
return x > 0;