aboutsummaryrefslogtreecommitdiff
path: root/graphics/font.cpp
diff options
context:
space:
mode:
authorMax Horn2012-02-20 16:03:39 +0100
committerMax Horn2012-02-20 16:18:27 +0100
commit4f8665fc836898ebf54fc73b1061125b748183bc (patch)
treeae393cd0822fab01bdcc38bd003ab186955eb270 /graphics/font.cpp
parent658080deeda79d20ea40643569fbcb072573e7cf (diff)
downloadscummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.tar.gz
scummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.tar.bz2
scummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.zip
COMMON: Move isFoo functions to namespace Common, add doxygen comments
Diffstat (limited to 'graphics/font.cpp')
-rw-r--r--graphics/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/font.cpp b/graphics/font.cpp
index 7b48fe9999..3b00cd8568 100644
--- a/graphics/font.cpp
+++ b/graphics/font.cpp
@@ -184,7 +184,7 @@ int Font::wordWrapText(const Common::String &str, int maxWidth, Common::Array<Co
// 'wrap point' where wrapping could take place. Everything that
// came before it can now safely be added to the line, as we know
// that it will not have to be wrapped.
- if (isSpace(c)) {
+ if (Common::isSpace(c)) {
line += tmpStr;
lineWidth += tmpWidth;
@@ -208,7 +208,7 @@ int Font::wordWrapText(const Common::String &str, int maxWidth, Common::Array<Co
if (lineWidth > 0) {
wrapper.add(line, lineWidth);
// Trim left side
- while (tmpStr.size() && isSpace(tmpStr[0])) {
+ while (tmpStr.size() && Common::isSpace(tmpStr[0])) {
tmpStr.deleteChar(0);
// This is not very fast, but it is the simplest way to
// assure we do not mess something up because of kerning.