aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2020-01-05 10:59:11 +0100
committerEugene Sandulenko2020-01-05 10:59:11 +0100
commitbd4f0aa570b795afaf8c5a5b3837082b995b797f (patch)
tree4a1ecab6b59e19746f4636774c6920ecd16731a6 /graphics
parent3c8e5d75c532c298408b3a24658118e18fa3ec00 (diff)
downloadscummvm-rg350-bd4f0aa570b795afaf8c5a5b3837082b995b797f.tar.gz
scummvm-rg350-bd4f0aa570b795afaf8c5a5b3837082b995b797f.tar.bz2
scummvm-rg350-bd4f0aa570b795afaf8c5a5b3837082b995b797f.zip
GRAPHICS: MACGUI: Fix text height for one line texts
Diffstat (limited to 'graphics')
-rw-r--r--graphics/macgui/mactext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index 0df403ac8c..916219fe73 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -395,7 +395,7 @@ int MacText::getLineWidth(int line, bool enforce) {
height = MAX(height, _textLines[line].chunks[i].getFont()->getFontHeight());
}
- if (!hastext)
+ if (!hastext && _textLines.size() > 1)
height = height > 3 ? height - 3 : 0;
_textLines[line].width = width;