Mercurial > sdl-ios-xcode
diff test/testwm2.c @ 1719:5b9f50c957ed SDL-1.3
You can now create multiple windows on Win32
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 28 Jun 2006 08:12:07 +0000 |
parents | 3e66ed1690e4 |
children | 98a3207ddde8 |
line wrap: on
line diff
--- a/test/testwm2.c Tue Jun 27 07:46:36 2006 +0000 +++ b/test/testwm2.c Wed Jun 28 08:12:07 2006 +0000 @@ -64,10 +64,18 @@ } for (i = 0; i < num_windows; ++i) { char title[32]; + int x, y; SDL_snprintf(title, sizeof(title), "testwm %d", i + 1); + if (i == 0) { + x = SDL_WINDOWPOS_CENTERED; + y = SDL_WINDOWPOS_CENTERED; + } else { + x = SDL_WINDOWPOS_UNDEFINED; + y = SDL_WINDOWPOS_UNDEFINED; + } windows[i] = - SDL_CreateWindow(title, -1, -1, window_w, window_h, + SDL_CreateWindow(title, x, y, window_w, window_h, SDL_WINDOW_SHOWN); if (!windows[i]) { fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());