test/testwm2.c
branchSDL-1.3
changeset 1719 5b9f50c957ed
parent 1713 3e66ed1690e4
child 1725 98a3207ddde8
     1.1 --- a/test/testwm2.c	Tue Jun 27 07:46:36 2006 +0000
     1.2 +++ b/test/testwm2.c	Wed Jun 28 08:12:07 2006 +0000
     1.3 @@ -64,10 +64,18 @@
     1.4      }
     1.5      for (i = 0; i < num_windows; ++i) {
     1.6          char title[32];
     1.7 +        int x, y;
     1.8  
     1.9          SDL_snprintf(title, sizeof(title), "testwm %d", i + 1);
    1.10 +        if (i == 0) {
    1.11 +            x = SDL_WINDOWPOS_CENTERED;
    1.12 +            y = SDL_WINDOWPOS_CENTERED;
    1.13 +        } else {
    1.14 +            x = SDL_WINDOWPOS_UNDEFINED;
    1.15 +            y = SDL_WINDOWPOS_UNDEFINED;
    1.16 +        }
    1.17          windows[i] =
    1.18 -            SDL_CreateWindow(title, -1, -1, window_w, window_h,
    1.19 +            SDL_CreateWindow(title, x, y, window_w, window_h,
    1.20                               SDL_WINDOW_SHOWN);
    1.21          if (!windows[i]) {
    1.22              fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());