diff options
author | Max Horn | 2009-09-04 20:09:29 +0000 |
---|---|---|
committer | Max Horn | 2009-09-04 20:09:29 +0000 |
commit | 4ae8f43be3394927a9b8b71dfaaaff4a87aa2f69 (patch) | |
tree | e6dd0dd773cb6f8c0978230ff197e4b52af2a30b /engines/teenagent/font.cpp | |
parent | 088c5dada3040fd2f0d0df04d12156610786a0e2 (diff) | |
download | scummvm-rg350-4ae8f43be3394927a9b8b71dfaaaff4a87aa2f69.tar.gz scummvm-rg350-4ae8f43be3394927a9b8b71dfaaaff4a87aa2f69.tar.bz2 scummvm-rg350-4ae8f43be3394927a9b8b71dfaaaff4a87aa2f69.zip |
TEEN: Some whitespace fixes
svn-id: r43946
Diffstat (limited to 'engines/teenagent/font.cpp')
-rw-r--r-- | engines/teenagent/font.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/teenagent/font.cpp b/engines/teenagent/font.cpp index 4f982f1775..5e917dc354 100644 --- a/engines/teenagent/font.cpp +++ b/engines/teenagent/font.cpp @@ -59,8 +59,8 @@ uint Font::render(Graphics::Surface *surface, int x, int y, char c) { //debug(0, "char %c, width: %dx%d", c, w, h); glyph += 2; byte * dst = (byte *)surface->getBasePtr(x, y); - for(uint i = 0; i < h; ++i) { - for(uint j = 0; j < w; ++j) { + for (uint i = 0; i < h; ++i) { + for (uint j = 0; j < w; ++j) { byte v = *glyph++; switch(v) { case 1: @@ -77,7 +77,7 @@ uint Font::render(Graphics::Surface *surface, int x, int y, char c) { } static uint find_in_str(const Common::String &str, char c, uint pos = 0) { - while(pos < str.size() && str[pos] != c) ++pos; + while (pos < str.size() && str[pos] != c) ++pos; return pos; } @@ -102,7 +102,7 @@ uint Font::render(Graphics::Surface *surface, int x, int y, const Common::String y += height; i = j + 1; - } while(i < str.size()); + } while (i < str.size()); return max_w; } else { //surface == NULL; @@ -127,8 +127,8 @@ uint Font::render(Graphics::Surface *surface, int x, int y, const Common::String void Font::grid(Graphics::Surface *surface, int x, int y, int w, int h, byte color) { byte * dst = (byte *)surface->getBasePtr(x, y); - for(int i = 0; i < h; ++i) { - for(int j = 0; j < w; ++j) { + for (int i = 0; i < h; ++i) { + for (int j = 0; j < w; ++j) { if (((i ^ j) & 1) == 0) dst[j] = color; } |