Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added support for the --depth command line option
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 23, 2007
1 parent 9075c1b commit c5b2ddc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/common.c
Expand Up @@ -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]) {
Expand Down

0 comments on commit c5b2ddc

Please sign in to comment.