forked from mirror/OpenTTD
(svn r6463) -Fix (r6462): Reset the string width to zero on every new line of course...
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user