diff options
author | Max Horn | 2009-09-30 16:16:53 +0000 |
---|---|---|
committer | Max Horn | 2009-09-30 16:16:53 +0000 |
commit | 8ba75fc522f16844524dd4d6f88c3851e2402969 (patch) | |
tree | df25c20389e3e706d508f37914dedc73c6479f00 /gui | |
parent | 25dde91c7c6c7da52636e3daa34bd9eee5d9dcb9 (diff) | |
download | scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.gz scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.bz2 scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.zip |
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ThemeParser.cpp | 6 | ||||
-rw-r--r-- | gui/about.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp index e30e759e66..4d7c91686b 100644 --- a/gui/ThemeParser.cpp +++ b/gui/ThemeParser.cpp @@ -459,7 +459,7 @@ bool ThemeParser::parseDrawStep(ParserNode *stepNode, Graphics::DrawStep *drawst if (stepNode->values.contains("orientation")) { val = stepNode->values["orientation"]; - if ( val == "top") + if (val == "top") drawstep->extraData = Graphics::VectorRenderer::kTriangleUp; else if (val == "bottom") drawstep->extraData = Graphics::VectorRenderer::kTriangleDown; @@ -622,7 +622,7 @@ bool ThemeParser::parserCallback_widget(ParserNode *node) { Graphics::TextAlign alignH = Graphics::kTextAlignLeft; if (node->values.contains("textalign")) { - if((alignH = parseTextHAlign(node->values["textalign"])) == Graphics::kTextAlignInvalid) + if ((alignH = parseTextHAlign(node->values["textalign"])) == Graphics::kTextAlignInvalid) return parserError("Invalid value for text alignment."); } @@ -847,7 +847,7 @@ bool ThemeParser::parseCommonLayoutProps(ParserNode *node, const Common::String if (node->values.contains("textalign")) { Graphics::TextAlign alignH = Graphics::kTextAlignLeft; - if((alignH = parseTextHAlign(node->values["textalign"])) == Graphics::kTextAlignInvalid) + if ((alignH = parseTextHAlign(node->values["textalign"])) == Graphics::kTextAlignInvalid) return parserError("Invalid value for text alignment."); _theme->getEvaluator()->setVar(var + "Align", alignH); diff --git a/gui/about.cpp b/gui/about.cpp index 03927e6a40..0a9265cb13 100644 --- a/gui/about.cpp +++ b/gui/about.cpp @@ -100,7 +100,7 @@ AboutDialog::AboutDialog() _w = 0; for (i = 0; i < ARRAYSIZE(credits); i++) { int tmp = g_gui.getStringWidth(credits[i] + 5); - if ( _w < tmp && tmp <= maxW) { + if (_w < tmp && tmp <= maxW) { _w = tmp; } } @@ -311,7 +311,7 @@ void AboutDialog::reflowLayout() { _w = 0; for (int i = 0; i < ARRAYSIZE(credits); i++) { int tmp = g_gui.getStringWidth(credits[i] + 5); - if ( _w < tmp && tmp <= maxW) { + if (_w < tmp && tmp <= maxW) { _w = tmp; } } |