From 3c03b2b39f4b197d0f4c8429dbc846366d128178 Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Sat, 19 Oct 2024 23:48:25 +0100 Subject: [PATCH] lime_sdl: `--windowed` option is now valid, although adding it has no effect The SDL executable is always windowed unless explicitly made fullscreen. This change is just to avoid error text when using the option interchangably between `lime_qt` and `lime_sdl` --- src/lime_sdl/lime_sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lime_sdl/lime_sdl.cpp b/src/lime_sdl/lime_sdl.cpp index 70c1d9957..b63b4b63e 100644 --- a/src/lime_sdl/lime_sdl.cpp +++ b/src/lime_sdl/lime_sdl.cpp @@ -226,11 +226,12 @@ void LaunchSdlFrontend(int argc, char** argv) { {"fullscreen", no_argument, 0, 'f'}, {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'v'}, + {"windowed", no_argument, 0, 'w'}, {0, 0, 0, 0}, }; while (optind < argc) { - int arg = getopt_long(argc, argv, "g:i:m:nr:p:fhv", long_options, &option_index); + int arg = getopt_long(argc, argv, "g:i:m:nr:p:fhvw", long_options, &option_index); if (arg != -1) { switch (static_cast(arg)) { case 'g':