[Scummvm-cvs-logs] SF.net SVN: scummvm: [24210] scummvm/trunk/graphics/font.cpp
aquadran at users.sourceforge.net
aquadran at users.sourceforge.net
Sun Oct 8 17:55:14 CEST 2006
Revision: 24210
http://svn.sourceforge.net/scummvm/?rev=24210&view=rev
Author: aquadran
Date: 2006-10-08 08:55:09 -0700 (Sun, 08 Oct 2006)
Log Message:
-----------
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)
Modified Paths:
--------------
scummvm/trunk/graphics/font.cpp
Modified: scummvm/trunk/graphics/font.cpp
===================================================================
--- scummvm/trunk/graphics/font.cpp 2006-10-08 15:46:23 UTC (rev 24209)
+++ scummvm/trunk/graphics/font.cpp 2006-10-08 15:55:09 UTC (rev 24210)
@@ -867,7 +867,7 @@
// 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list