mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r6463) -Fix (r6462): Reset the string width to zero on every new line of course...
This commit is contained in:
parent
3ccc87b376
commit
b28b547a81
6
gfx.c
6
gfx.c
|
@ -568,10 +568,8 @@ BoundingRect GetStringBoundingBox(const char *str)
|
||||||
case ASCII_BIGFONT: size = FS_LARGE; break;
|
case ASCII_BIGFONT: size = FS_LARGE; break;
|
||||||
case ASCII_NL:
|
case ASCII_NL:
|
||||||
br.height += GetCharacterHeight(size);
|
br.height += GetCharacterHeight(size);
|
||||||
if (br.width > max_width) {
|
if (br.width > max_width) max_width = br.width;
|
||||||
max_width = br.width;
|
br.width = 0;
|
||||||
br.width = 0;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue