aboutsummaryrefslogtreecommitdiff
path: root/graphics/font.cpp
diff options
context:
space:
mode:
authorstevenhoefel2017-01-15 18:42:50 +1100
committerstevenhoefel2017-01-15 18:42:50 +1100
commit2e48529fa1f1d865299db81bc99cb7537656b19f (patch)
treed1f0f7ebf5a60bd17dc40b11f8dd77ce491daace /graphics/font.cpp
parent8b4460e310886499f5018cdd264c0e3e835fe6fa (diff)
downloadscummvm-rg350-2e48529fa1f1d865299db81bc99cb7537656b19f.tar.gz
scummvm-rg350-2e48529fa1f1d865299db81bc99cb7537656b19f.tar.bz2
scummvm-rg350-2e48529fa1f1d865299db81bc99cb7537656b19f.zip
DIRECTOR: Utilise MacText class to provide Text Wrapping.
Diffstat (limited to 'graphics/font.cpp')
-rw-r--r--graphics/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/font.cpp b/graphics/font.cpp
index 7768b7362d..4f53dfe858 100644
--- a/graphics/font.cpp
+++ b/graphics/font.cpp
@@ -227,7 +227,7 @@ int wordWrapTextImpl(const Font &font, const StringType &str, int maxWidth, Comm
if (lineWidth > 0) {
wrapper.add(line, lineWidth);
}
- return wrapper.actualMaxLineWidth;
+ return MAX(wrapper.actualMaxLineWidth, maxWidth);
}
} // End of anonymous namespace