mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 17:16:19 -05:00
Added --fullscreen-desktop option to test the new SDL_WINDOW_FULLSCREEN_DESKTOP functionality
This commit is contained in:
@@ -182,6 +182,11 @@ CommonArg(CommonState * state, int index)
|
||||
state->num_windows = 1;
|
||||
return 1;
|
||||
}
|
||||
if (SDL_strcasecmp(argv[index], "--fullscreen-desktop") == 0) {
|
||||
state->window_flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||
state->num_windows = 1;
|
||||
return 1;
|
||||
}
|
||||
if (SDL_strcasecmp(argv[index], "--windows") == 0) {
|
||||
++index;
|
||||
if (!argv[index] || !SDL_isdigit(*argv[index])) {
|
||||
|
||||
Reference in New Issue
Block a user