Mercurial > sdl-ios-xcode
comparison test/common.c @ 5252:d844537c42fd
Allow windows to be created on non-primary displays.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Feb 2011 22:37:01 -0800 |
parents | 58265e606e4e |
children |
comparison
equal
deleted
inserted
replaced
5251:58265e606e4e | 5252:d844537c42fd |
---|---|
148 ++index; | 148 ++index; |
149 if (!argv[index]) { | 149 if (!argv[index]) { |
150 return -1; | 150 return -1; |
151 } | 151 } |
152 state->display = SDL_atoi(argv[index]); | 152 state->display = SDL_atoi(argv[index]); |
153 if (SDL_WINDOWPOS_ISUNDEFINED(state->window_x)) { | |
154 state->window_x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display); | |
155 state->window_y = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display); | |
156 } | |
153 return 2; | 157 return 2; |
154 } | 158 } |
155 if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) { | 159 if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) { |
156 state->window_flags |= SDL_WINDOW_FULLSCREEN; | 160 state->window_flags |= SDL_WINDOW_FULLSCREEN; |
157 state->num_windows = 1; | 161 state->num_windows = 1; |