aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2006-10-08 15:55:09 +0000
committerPaweł Kołodziejski2006-10-08 15:55:09 +0000
commit1307f597a69ac913b6045a9dfa8e07221e021cde (patch)
tree25d4c110f5d4b32aaf0f7501dd5e25135a351efb
parent0f177137637301274185a12053229f7e62caa200 (diff)
downloadscummvm-rg350-1307f597a69ac913b6045a9dfa8e07221e021cde.tar.gz
scummvm-rg350-1307f597a69ac913b6045a9dfa8e07221e021cde.tar.bz2
scummvm-rg350-1307f597a69ac913b6045a9dfa8e07221e021cde.zip
fixed assert in isspace function because wrong variable type for chars when they value is greater then 128. isspace take as "int" type param (at least in ms sdk)
svn-id: r24210
-rw-r--r--graphics/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/font.cpp b/graphics/font.cpp
index 53f04afbe0..0e0ddef5a9 100644
--- a/graphics/font.cpp
+++ b/graphics/font.cpp
@@ -867,7 +867,7 @@ int Font::wordWrapText(const Common::String &str, int maxWidth, Common::StringLi
// lines.
for (Common::String::const_iterator x = str.begin(); x != str.end(); ++x) {
- const char c = *x;
+ const byte c = *x;
const int w = getCharWidth(c);
const bool wouldExceedWidth = (lineWidth + tmpWidth + w > maxWidth);