Mercurial > sdl-ios-xcode
comparison test/common.c @ 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 | 2032348afed1 |
children | 4baee598306d |
comparison
equal
deleted
inserted
replaced
2208:b03710fb0333 | 2209:b292fa4941c6 |
---|---|
157 return -1; | 157 return -1; |
158 } | 158 } |
159 *h++ = '\0'; | 159 *h++ = '\0'; |
160 state->window_w = SDL_atoi(w); | 160 state->window_w = SDL_atoi(w); |
161 state->window_h = SDL_atoi(h); | 161 state->window_h = SDL_atoi(h); |
162 return 2; | |
163 } | |
164 if (SDL_strcasecmp(argv[index], "--depth") == 0) { | |
165 ++index; | |
166 if (!argv[index]) { | |
167 return -1; | |
168 } | |
169 state->depth = SDL_atoi(argv[index]); | |
162 return 2; | 170 return 2; |
163 } | 171 } |
164 if (SDL_strcasecmp(argv[index], "--refresh") == 0) { | 172 if (SDL_strcasecmp(argv[index], "--refresh") == 0) { |
165 ++index; | 173 ++index; |
166 if (!argv[index]) { | 174 if (!argv[index]) { |