(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
authorsmatz
Tue, 02 Sep 2008 14:46:28 +0000
changeset 10055 b3bf982d7879
parent 10054 69258fa808b7
child 10056 48659f7d4fa5
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
src/viewport.cpp
src/viewport_type.h
--- a/src/viewport.cpp	Tue Sep 02 08:25:15 2008 +0000
+++ b/src/viewport.cpp	Tue Sep 02 14:46:28 2008 +0000
@@ -1259,7 +1259,7 @@
 
 void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str)
 {
-	char buffer[128];
+	char buffer[256];
 	uint w;
 
 	sign->top = top;
--- a/src/viewport_type.h	Tue Sep 02 08:25:15 2008 +0000
+++ b/src/viewport_type.h	Tue Sep 02 14:46:28 2008 +0000
@@ -27,7 +27,7 @@
 struct ViewportSign {
 	int32 left;
 	int32 top;
-	byte width_1, width_2;
+	uint16 width_1, width_2;
 };
 
 enum {