Added --fullscreen-desktop option to test the new SDL_WINDOW_FULLSCREEN_DESKTOP functionality

This commit is contained in:
Sam Lantinga
2012-12-31 10:13:25 -08:00
parent f425fe1358
commit 77057b7234
2 changed files with 11 additions and 1 deletions

View File

@@ -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])) {