- added option to start in window mode
authorIngo Ruhnke <grumbel@gmx.de>
Tue, 15 Jun 2004 22:38:52 +0000 (22:38 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Tue, 15 Jun 2004 22:38:52 +0000 (22:38 +0000)
SVN-Revision: 1500

src/setup.cpp

index 19ac305..45a8bed 100644 (file)
@@ -946,10 +946,13 @@ void parseargs(int argc, char * argv[])
       if (strcmp(argv[i], "--fullscreen") == 0 ||
           strcmp(argv[i], "-f") == 0)
         {
-          /* Use full screen: */
-
           use_fullscreen = true;
         }
+      else if (strcmp(argv[i], "--window") == 0 ||
+               strcmp(argv[i], "-w") == 0)
+        {
+          use_fullscreen = false;
+        }
       else if (strcmp(argv[i], "--joystick") == 0 || strcmp(argv[i], "-j") == 0)
         {
           assert(i+1 < argc);
@@ -1044,7 +1047,8 @@ void parseargs(int argc, char * argv[])
                "  Please see the file \"README.txt\" for more details.\n"));
           printf(_("Usage: %s [OPTIONS] FILENAME\n\n"), argv[0]);
           puts(_("Display Options:\n"
-               "  --fullscreen        Run in fullscreen mode.\n"
+               "  -f, --fullscreen    Run in fullscreen mode.\n"
+               "  -w, --window        Run in window mode.\n"
                "  --opengl            If OpenGL support was compiled in, this will tell\n"
                "                      SuperTux to make use of it.\n"
                "  --sdl               Use the SDL software graphical renderer\n"