diff options
author | stevenhoefel | 2017-01-15 18:42:50 +1100 |
---|---|---|
committer | stevenhoefel | 2017-01-15 18:42:50 +1100 |
commit | 2e48529fa1f1d865299db81bc99cb7537656b19f (patch) | |
tree | d1f0f7ebf5a60bd17dc40b11f8dd77ce491daace /graphics/font.cpp | |
parent | 8b4460e310886499f5018cdd264c0e3e835fe6fa (diff) | |
download | scummvm-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.cpp | 2 |
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 |