aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-11-07 13:17:37 +0000
committerTorbjörn Andersson2003-11-07 13:17:37 +0000
commit3433769bea8f352a812c2427bedd60cd2f6bf37d (patch)
treea2c833bc97f3732c42b7f39c1e19bdbbfbfe38a2 /base/main.cpp
parenta5498d210294024263586e24860a9eaa986a16ac (diff)
downloadscummvm-rg350-3433769bea8f352a812c2427bedd60cd2f6bf37d.tar.gz
scummvm-rg350-3433769bea8f352a812c2427bedd60cd2f6bf37d.tar.bz2
scummvm-rg350-3433769bea8f352a812c2427bedd60cd2f6bf37d.zip
Removed some unnecessary whitespace
svn-id: r11187
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/base/main.cpp b/base/main.cpp
index b8c0b721a7..20a7d80ebd 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -204,23 +204,23 @@ int main(int argc, char *argv[]) {
/* Redirect standard input and standard output */
FILE *newfp = freopen(STDOUT_FILE, "w", stdout);
- if ( newfp == NULL ) { /* This happens on NT */
+ if (newfp == NULL) { /* This happens on NT */
#if !defined(stdout)
stdout = fopen(STDOUT_FILE, "w");
#else
newfp = fopen(STDOUT_FILE, "w");
- if ( newfp ) {
+ if (newfp) {
*stdout = *newfp;
}
#endif
}
newfp = freopen(STDERR_FILE, "w", stderr);
- if ( newfp == NULL ) { /* This happens on NT */
+ if (newfp == NULL) { /* This happens on NT */
#if !defined(stderr)
stderr = fopen(STDERR_FILE, "w");
#else
newfp = fopen(STDERR_FILE, "w");
- if ( newfp ) {
+ if (newfp) {
*stderr = *newfp;
}
#endif
@@ -238,7 +238,7 @@ int main(int argc, char *argv[]) {
// Parse the command line information
GameDetector detector;
- detector.parseCommandLine(argc, argv);
+ detector.parseCommandLine(argc, argv);
// Create the system object
OSystem *system = OSystem::instance();
@@ -259,11 +259,11 @@ int main(int argc, char *argv[]) {
// Set the window caption to the game name
prop.caption = ConfMan.get("description", detector._targetName).c_str();
- if (prop.caption == NULL)
+ if (prop.caption == NULL)
prop.caption = detector._game.description;
- if (prop.caption == NULL)
+ if (prop.caption == NULL)
prop.caption = detector._targetName.c_str();
- if (prop.caption != NULL)
+ if (prop.caption != NULL)
system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop);
// FIXME: It seem not logical that we first might set the gfx mode to
@@ -275,7 +275,7 @@ int main(int argc, char *argv[]) {
(detector._game.features & GF_DEFAULT_TO_1X_SCALER)) {
prop.gfx_mode = GFX_NORMAL;
system->property(OSystem::PROP_SET_GFX_MODE, &prop);
- } else
+ } else
// Override global scaler with any game-specific define
if (ConfMan.hasKey("gfx_mode")) {
prop.gfx_mode = detector.parseGraphicsMode(ConfMan.get("gfx_mode"));