Allow windows to be created on non-primary displays.
This commit is contained in:
parent
018af55e16
commit
4187161566
1 changed files with 4 additions and 0 deletions
|
@ -150,6 +150,10 @@ CommonArg(CommonState * state, int index)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
state->display = SDL_atoi(argv[index]);
|
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;
|
return 2;
|
||||||
}
|
}
|
||||||
if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) {
|
if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue