From 4ae8f43be3394927a9b8b71dfaaaff4a87aa2f69 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 4 Sep 2009 20:09:29 +0000 Subject: TEEN: Some whitespace fixes svn-id: r43946 --- engines/teenagent/font.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/teenagent/font.cpp') 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; } -- cgit v1.2.3