diff options
author | Paul Gilbert | 2009-07-05 07:21:17 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-07-05 07:21:17 +0000 |
commit | 48d164a498d188793374921e572aac15f13366c0 (patch) | |
tree | cce769d653c7932c41c32a26d2bce9f2b024633a /engines/cruise | |
parent | eba5780fc062d26ba2d70d3bc438265a43ef5411 (diff) | |
download | scummvm-rg350-48d164a498d188793374921e572aac15f13366c0.tar.gz scummvm-rg350-48d164a498d188793374921e572aac15f13366c0.tar.bz2 scummvm-rg350-48d164a498d188793374921e572aac15f13366c0.zip |
Bugfix for word-wrapping of text, which sometimes failed for strings with special characters
svn-id: r42115
Diffstat (limited to 'engines/cruise')
-rw-r--r-- | engines/cruise/font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/font.cpp b/engines/cruise/font.cpp index d5010b2bf8..8da3621bdc 100644 --- a/engines/cruise/font.cpp +++ b/engines/cruise/font.cpp @@ -242,7 +242,7 @@ int32 prepareWordRender(int32 inRightBorder_X, int16 wordSpacingWidth, if (character == '|' || !character) { finish = 1; } else { - if (charData) { + if (charData >= 0) { if (pixelCount + wordSpacingWidth + (int16)fontData[charData].charWidth >= inRightBorder_X) { finish = 1; |