# HG changeset patch # User Sam Lantinga # Date 1297406221 28800 # Node ID d844537c42fdcce3135b0d7d12ec91e5249466ce # Parent 58265e606e4e55eedbcbc9bd05879b6562abf0b1 Allow windows to be created on non-primary displays. diff -r 58265e606e4e -r d844537c42fd test/common.c --- a/test/common.c Thu Feb 10 14:44:25 2011 -0800 +++ b/test/common.c Thu Feb 10 22:37:01 2011 -0800 @@ -150,6 +150,10 @@ return -1; } state->display = SDL_atoi(argv[index]); + if (SDL_WINDOWPOS_ISUNDEFINED(state->window_x)) { + state->window_x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display); + state->window_y = SDL_WINDOWPOS_UNDEFINED_DISPLAY(state->display); + } return 2; } if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) {