# HG changeset patch # User Sam Lantinga # Date 1185153112 0 # Node ID b292fa4941c6217f033071acf7a5dd5ed9222fdb # Parent b03710fb0333973d24220f18037703242839c3cf Added support for the --depth command line option diff -r b03710fb0333 -r b292fa4941c6 test/common.c --- a/test/common.c Sun Jul 22 13:22:47 2007 +0000 +++ b/test/common.c Mon Jul 23 01:11:52 2007 +0000 @@ -161,6 +161,14 @@ 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]) {