test/testwm2.c
changeset 6788 036f53f2f5aa
parent 6787 95a4c5a5464c
child 7034 3a5a53435ebd
     1.1 --- a/test/testwm2.c	Mon Dec 31 11:07:46 2012 -0800
     1.2 +++ b/test/testwm2.c	Mon Dec 31 12:15:25 2012 -0800
     1.3 @@ -80,6 +80,15 @@
     1.4              SDLTest_CommonEvent(state, &event, &done);
     1.5  
     1.6              if (event.type == SDL_WINDOWEVENT) {
     1.7 +                if (event.window.event == SDL_WINDOWEVENT_RESIZED) {
     1.8 +                    SDL_Window *window = SDL_GetWindowFromID(event.window.windowID);
     1.9 +                    if (window) {
    1.10 +                        printf("Window %d resized to %dx%d\n",
    1.11 +                            event.window.windowID,
    1.12 +                            event.window.data1,
    1.13 +                            event.window.data2);
    1.14 +                    }
    1.15 +                }
    1.16                  if (event.window.event == SDL_WINDOWEVENT_MOVED) {
    1.17                      SDL_Window *window = SDL_GetWindowFromID(event.window.windowID);
    1.18                      if (window) {