mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(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
4
gfx.c
4
gfx.c
@ -568,10 +568,8 @@ BoundingRect GetStringBoundingBox(const char *str)
|
||||
case ASCII_BIGFONT: size = FS_LARGE; break;
|
||||
case ASCII_NL:
|
||||
br.height += GetCharacterHeight(size);
|
||||
if (br.width > max_width) {
|
||||
max_width = br.width;
|
||||
if (br.width > max_width) max_width = br.width;
|
||||
br.width = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user