test/common.c
changeset 5304 59e6e16351e6
parent 5247 d844537c42fd
child 5349 02770b3c43f8
equal deleted inserted replaced
5303:d4074e52e739 5304:59e6e16351e6
   151         }
   151         }
   152         state->display = SDL_atoi(argv[index]);
   152         state->display = SDL_atoi(argv[index]);
   153         if (SDL_WINDOWPOS_ISUNDEFINED(state->window_x)) {
   153         if (SDL_WINDOWPOS_ISUNDEFINED(state->window_x)) {
   154             state->window_x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display);
   154             state->window_x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display);
   155             state->window_y = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display);
   155             state->window_y = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display);
       
   156         }
       
   157         if (SDL_WINDOWPOS_ISCENTERED(state->window_x)) {
       
   158             state->window_x = SDL_WINDOWPOS_CENTERED_DISPLAY(state->display);
       
   159             state->window_y = SDL_WINDOWPOS_CENTERED_DISPLAY(state->display);
   156         }
   160         }
   157         return 2;
   161         return 2;
   158     }
   162     }
   159     if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) {
   163     if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) {
   160         state->window_flags |= SDL_WINDOW_FULLSCREEN;
   164         state->window_flags |= SDL_WINDOW_FULLSCREEN;