Allow windows to be created on non-primary displays.

This commit is contained in:
Sam Lantinga 2011-02-10 22:37:01 -08:00
parent 018af55e16
commit 4187161566

View file

@ -150,6 +150,10 @@ CommonArg(CommonState * state, int index)
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) {