mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
This commit is contained in:
parent
fd97a89c57
commit
cbe397388f
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue