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

This commit is contained in:
Sam Lantinga 2023-03-16 16:58:01 -07:00
parent 3f67f02d0e
commit 9ee71f0ddf

View File

@ -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;