aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2017-02-02 23:41:58 +0100
committerEugene Sandulenko2017-02-02 23:41:58 +0100
commit165f5f1784797e2c1d522c7efe043ddc617c9f88 (patch)
tree87b9c6013f2ff2299899662aa8bbb07402788e7a
parent3e47d7abf3081daa00779d4d245ffc0963567f84 (diff)
downloadscummvm-rg350-165f5f1784797e2c1d522c7efe043ddc617c9f88.tar.gz
scummvm-rg350-165f5f1784797e2c1d522c7efe043ddc617c9f88.tar.bz2
scummvm-rg350-165f5f1784797e2c1d522c7efe043ddc617c9f88.zip
GRAPHICS: Fix MacText wrapping. Kudos to wjp
-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 600f2e9ead..22bd5ecbd2 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -307,7 +307,7 @@ void MacText::recalcDims() {
_textLines[i].y = y;
y += getLineHeight(i) + _interLinear;
- _textMaxWidth = MAX(_textMaxWidth, getLineWidth(i));
+ _textMaxWidth = MAX(_textMaxWidth, getLineWidth(i, true));
}
_textMaxHeight = y;