From 6cfe60266721aa1ad8e7967cf7630b444ca82db6 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 6 Aug 2015 17:21:50 +0200 Subject: [PATCH] Add the -window option as a counterpart to -fullscreen. --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.5