test/common.c
changeset 2209 b292fa4941c6
parent 2185 2032348afed1
child 2268 4baee598306d
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]) {