summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gfx.c b/gfx.c
index c706719de..30ca3cb12 100644
--- a/gfx.c
+++ b/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;
- br.width = 0;
- }
+ if (br.width > max_width) max_width = br.width;
+ br.width = 0;
break;
}
}