mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-23 19:03:27 +08:00
Added --skip-taskbar and --always-on-top command line options
This commit is contained in:
parent
3f67f02d0e
commit
9ee71f0ddf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user