Start in windowed mode instead of full screen
authorMiriam Ruiz <miriam@debian.org>
Wed, 3 Dec 2008 11:04:33 +0000 (3 12:04 +0100)
committerMiriam Ruiz <miriam@debian.org>
Wed, 3 Dec 2008 11:04:33 +0000 (3 12:04 +0100)
src/main.cpp

index 5b7ec9f..9376caa 100644 (file)
@@ -73,7 +73,7 @@ void CMain::start(bool want_map_editor)
 int main(int argc, char *argv[] )
 {
        int i;
-       int vid_m = GFX_AUTODETECT_FULLSCREEN; // screen desired graphic mode
+       int vid_m = GFX_AUTODETECT; // screen desired graphic mode
        int game_color_depth = -1;  // default color depth, -1 = autodetect from desktop default
        int vid_w = 640; // desired video resolution
        int vid_h = 480;
@@ -102,6 +102,9 @@ int main(int argc, char *argv[] )
                if (stricmp(argv[i], "-w") == 0)
                        vid_m = GFX_AUTODETECT_WINDOWED;
 
+               if (stricmp(argv[i], "-f") == 0)
+                       vid_m = GFX_AUTODETECT_FULLSCREEN;
+
                if (stricmp(argv[i], "-bpp16") == 0)
                        game_color_depth = 16;