1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 04:59:11 +00:00

(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels

This commit is contained in:
smatz
2008-09-02 14:46:28 +00:00
parent fd97a89c57
commit cbe397388f
2 changed files with 2 additions and 2 deletions

View File

@@ -1259,7 +1259,7 @@ static void ViewportAddWaypoints(DrawPixelInfo *dpi)
void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str) void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str)
{ {
char buffer[128]; char buffer[256];
uint w; uint w;
sign->top = top; sign->top = top;

View File

@@ -27,7 +27,7 @@ struct ViewPort {
struct ViewportSign { struct ViewportSign {
int32 left; int32 left;
int32 top; int32 top;
byte width_1, width_2; uint16 width_1, width_2;
}; };
enum { enum {