Browse Source

Added --skip-taskbar and --always-on-top command line options

Sam Lantinga 2 years ago
parent
commit
9ee71f0ddf
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/test/SDL_test_common.c

+ 9 - 1
src/test/SDL_test_common.c

@@ -33,7 +33,7 @@ static const char *video_usage[] = {
     "[--logical-presentation disabled|match|stretch|letterbox|overscan|integer_scale]",
     "[--logical-scale-quality nearest|linear|best]",
     "[--scale N]", "[--depth N]", "[--refresh R]", "[--vsync]", "[--noframe]",
-    "[--resizable]", "[--transparent]",
+    "[--resizable]", "[--transparent]", "[--skip-taskbar]", "[--always-on-top]",
     "[--minimize]", "[--maximize]", "[--grab]", "[--keyboard-grab]",
     "[--hidden]", "[--input-focus]", "[--mouse-focus]",
     "[--flash-on-focus-loss]", "[--allow-highdpi]", "[--confine-cursor X,Y,W,H]",
@@ -495,6 +495,14 @@ int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
         state->window_flags |= SDL_WINDOW_TRANSPARENT;
         return 1;
     }
+    if (SDL_strcasecmp(argv[index], "--skip-taskbar") == 0) {
+        state->window_flags |= SDL_WINDOW_SKIP_TASKBAR;
+        return 1;
+    }
+    if (SDL_strcasecmp(argv[index], "--always-on-top") == 0) {
+        state->window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;
+        return 1;
+    }
     if (SDL_strcasecmp(argv[index], "--minimize") == 0) {
         state->window_flags |= SDL_WINDOW_MINIMIZED;
         return 1;