Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Allow windows to be created on non-primary displays.

  • Loading branch information
slouken committed Feb 11, 2011
1 parent 49bd9eb commit 829376033c4beb3cb8ce6ea76e995c732973b2b9
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/common.c
@@ -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) {

0 comments on commit 8293760

Please sign in to comment.