mirror of
https://github.com/yawut/SDL.git
synced 2026-07-02 00:13:39 -05:00
Allow windows to be created on non-primary displays.
This commit is contained in:
parent
37993063c6
commit
d43d02f3c3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user