test/testwm2.c
changeset 6787 95a4c5a5464c
parent 6786 7174fb08017a
child 6788 036f53f2f5aa
     1.1 --- a/test/testwm2.c	Mon Dec 31 10:29:17 2012 -0800
     1.2 +++ b/test/testwm2.c	Mon Dec 31 11:07:46 2012 -0800
     1.3 @@ -83,11 +83,11 @@
     1.4                  if (event.window.event == SDL_WINDOWEVENT_MOVED) {
     1.5                      SDL_Window *window = SDL_GetWindowFromID(event.window.windowID);
     1.6                      if (window) {
     1.7 -                        printf("Window %d moved to %d,%d (display %d)\n",
     1.8 +                        printf("Window %d moved to %d,%d (display %s)\n",
     1.9                              event.window.windowID,
    1.10                              event.window.data1,
    1.11                              event.window.data2,
    1.12 -                            SDL_GetWindowDisplayIndex(window));
    1.13 +                            SDL_GetDisplayName(SDL_GetWindowDisplayIndex(window)));
    1.14                      }
    1.15                  }
    1.16              }