Commit 8b728544 authored by Sam Lantinga's avatar Sam Lantinga

Added support for the --depth command line option

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402566
parent 9524d518
...@@ -161,6 +161,14 @@ CommonArg(CommonState * state, int index) ...@@ -161,6 +161,14 @@ CommonArg(CommonState * state, int index)
state->window_h = SDL_atoi(h); state->window_h = SDL_atoi(h);
return 2; 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) { if (SDL_strcasecmp(argv[index], "--refresh") == 0) {
++index; ++index;
if (!argv[index]) { if (!argv[index]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment