Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Allow windows to be created on non-primary displays.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 11, 2011
1 parent 49bd9eb commit 8293760
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/common.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 8293760

Please sign in to comment.