Mercurial > sdl-ios-xcode
changeset 2209:b292fa4941c6
Added support for the --depth command line option
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 23 Jul 2007 01:11:52 +0000 |
parents | b03710fb0333 |
children | 1de324fce4e8 |
files | test/common.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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]) {