summaryrefslogtreecommitdiff
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
commit2c58a87f4ce849cdd93c0a008baa60bf37e74463 (patch)
treeed7fdba054cf545c7409e99340c0e08050b53213
parentf5c8513f75f82d2083854622ed4c638adf9774e5 (diff)
downloadopenttd-2c58a87f4ce849cdd93c0a008baa60bf37e74463.tar.xz
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
-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 {