(svn r6463) -Fix (r6462): Reset the string width to zero on every new line of course...

This commit is contained in:
Darkvater 2006-09-16 13:44:12 +00:00
parent 3ccc87b376
commit b28b547a81
1 changed files with 2 additions and 4 deletions

6
gfx.c
View File

@ -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;
}
}