diff options
author | stevenhoefel | 2017-01-17 22:14:58 +1100 |
---|---|---|
committer | stevenhoefel | 2017-01-17 22:14:58 +1100 |
commit | feab260c98b621a13043cd84193928b8f92797d3 (patch) | |
tree | c13e068d31115877ec0f96cdbff1f160b80830ad /graphics/font.cpp | |
parent | a8d975f03273e931e57efe5b7d51751a238b6886 (diff) | |
download | scummvm-rg350-feab260c98b621a13043cd84193928b8f92797d3.tar.gz scummvm-rg350-feab260c98b621a13043cd84193928b8f92797d3.tar.bz2 scummvm-rg350-feab260c98b621a13043cd84193928b8f92797d3.zip |
GRAPHICS: Fix oversight on length value to return.
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 4f53dfe858..7768b7362d 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 MAX(wrapper.actualMaxLineWidth, maxWidth); + return wrapper.actualMaxLineWidth; } } // End of anonymous namespace |