diff options
author | Darkvater <Darkvater@openttd.org> | 2006-09-16 13:44:12 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-09-16 13:44:12 +0000 |
commit | e493bd60792d118925b97192a4b5170e330cfb6f (patch) | |
tree | 0b207d9b8f8ef24d531aba86a2b7d14f953c5bc4 | |
parent | 552570f9e6ed3982c1b8d5bd819eb06eb4c5df53 (diff) | |
download | openttd-e493bd60792d118925b97192a4b5170e330cfb6f.tar.xz |
(svn r6463) -Fix (r6462): Reset the string width to zero on every new line of course...
-rw-r--r-- | gfx.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; - br.width = 0; - } + if (br.width > max_width) max_width = br.width; + br.width = 0; break; } } |