mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Added support for the --depth command line option
This commit is contained in:
parent
5c79673fa0
commit
5a79edd04b
|
|
@ -161,6 +161,14 @@ CommonArg(CommonState * state, int index)
|
|||
state->window_h = SDL_atoi(h);
|
||||
return 2;
|
||||
}
|
||||
if (SDL_strcasecmp(argv[index], "--depth") == 0) {
|
||||
++index;
|
||||
if (!argv[index]) {
|
||||
return -1;
|
||||
}
|
||||
state->depth = SDL_atoi(argv[index]);
|
||||
return 2;
|
||||
}
|
||||
if (SDL_strcasecmp(argv[index], "--refresh") == 0) {
|
||||
++index;
|
||||
if (!argv[index]) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user