From: Guus Sliepen Date: Thu, 6 Aug 2015 15:21:50 +0000 (+0200) Subject: Add the -window option as a counterpart to -fullscreen. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6cfe60266721aa1ad8e7967cf7630b444ca82db6;p=quix0rs-blobwars.git Add the -window option as a counterpart to -fullscreen. --- diff --git a/src/main.cpp b/src/main.cpp index e3844bb..dcb6f51 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -44,6 +44,7 @@ void showHelp() printf("Additional Commands\n"); printf("\t-fullscreen Start the game in Full Screen mode\n"); + printf("\t-window Start the game in Window mode\n"); printf("\t-mono Use mono sound output instead of stereo\n"); printf("\t-noaudio Disables audio\n"); printf("\t-version Display version number\n"); @@ -132,6 +133,7 @@ int main(int argc, char *argv[]) for (int i = 1 ; i < argc ; i++) { if (strcmp(argv[i], "-fullscreen") == 0) engine.fullScreen = true; + else if (strcmp(argv[i], "-window") == 0) engine.fullScreen = false; else if (strcmp(argv[i], "-noaudio") == 0) engine.useAudio = 0; else if (strcmp(argv[i], "-mono") == 0) engine.useAudio = 1; else if (strcmp(argv[i], "-version") == 0) showVersion();