Added support for the --depth command line option
authorSam Lantinga <slouken@libsdl.org>
Mon, 23 Jul 2007 01:11:52 +0000
changeset 2209b292fa4941c6
parent 2208 b03710fb0333
child 2210 1de324fce4e8
Added support for the --depth command line option
test/common.c
     1.1 --- a/test/common.c	Sun Jul 22 13:22:47 2007 +0000
     1.2 +++ b/test/common.c	Mon Jul 23 01:11:52 2007 +0000
     1.3 @@ -161,6 +161,14 @@
     1.4          state->window_h = SDL_atoi(h);
     1.5          return 2;
     1.6      }
     1.7 +    if (SDL_strcasecmp(argv[index], "--depth") == 0) {
     1.8 +        ++index;
     1.9 +        if (!argv[index]) {
    1.10 +            return -1;
    1.11 +        }
    1.12 +        state->depth = SDL_atoi(argv[index]);
    1.13 +        return 2;
    1.14 +    }
    1.15      if (SDL_strcasecmp(argv[index], "--refresh") == 0) {
    1.16          ++index;
    1.17          if (!argv[index]) {