summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-02 14:46:28 +0000
committersmatz <smatz@openttd.org>2008-09-02 14:46:28 +0000
commitcbe397388f0ef537b61095b05ee4edfe9dd92202 (patch)
treeed7fdba054cf545c7409e99340c0e08050b53213 /src
parentfd97a89c576f900e52d44bb631aba62c9b744202 (diff)
downloadopenttd-cbe397388f0ef537b61095b05ee4edfe9dd92202.tar.xz
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
Diffstat (limited to 'src')
-rw-r--r--src/viewport.cpp2
-rw-r--r--src/viewport_type.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 78dc2a0bf..dce5424d2 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1259,7 +1259,7 @@ static void ViewportAddWaypoints(DrawPixelInfo *dpi)
void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str)
{
- char buffer[128];
+ char buffer[256];
uint w;
sign->top = top;
diff --git a/src/viewport_type.h b/src/viewport_type.h
index 98f56b885..09bf2dcf3 100644
--- a/src/viewport_type.h
+++ b/src/viewport_type.h
@@ -27,7 +27,7 @@ struct ViewPort {
struct ViewportSign {
int32 left;
int32 top;
- byte width_1, width_2;
+ uint16 width_1, width_2;
};
enum {