Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex()
authorSam Lantinga <slouken@libsdl.org>
Mon, 31 Dec 2012 10:29:17 -0800
changeset 6786 7174fb08017a
parent 6785 c094c438c0a6
child 6787 95a4c5a5464c
Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex()
include/SDL_video.h
src/video/SDL_video.c
test/testwm2.c
--- a/include/SDL_video.h	Mon Dec 31 10:26:38 2012 -0800
+++ b/include/SDL_video.h	Mon Dec 31 10:29:17 2012 -0800
@@ -339,7 +339,7 @@
  *  \return the display index of the display containing the center of the
  *          window, or -1 on error.
  */
-extern DECLSPEC int SDLCALL SDL_GetWindowDisplay(SDL_Window * window);
+extern DECLSPEC int SDLCALL SDL_GetWindowDisplayIndex(SDL_Window * window);
 
 /**
  *  \brief Set the display mode used when a fullscreen window is visible.
--- a/src/video/SDL_video.c	Mon Dec 31 10:26:38 2012 -0800
+++ b/src/video/SDL_video.c	Mon Dec 31 10:29:17 2012 -0800
@@ -914,7 +914,7 @@
 }
 
 int
-SDL_GetWindowDisplay(SDL_Window * window)
+SDL_GetWindowDisplayIndex(SDL_Window * window)
 {
     int displayIndex;
     int i, dist;
@@ -976,7 +976,7 @@
 SDL_VideoDisplay *
 SDL_GetDisplayForWindow(SDL_Window *window)
 {
-    int displayIndex = SDL_GetWindowDisplay(window);
+    int displayIndex = SDL_GetWindowDisplayIndex(window);
     if (displayIndex >= 0) {
         return &_this->displays[displayIndex];
     } else {
--- a/test/testwm2.c	Mon Dec 31 10:26:38 2012 -0800
+++ b/test/testwm2.c	Mon Dec 31 10:29:17 2012 -0800
@@ -87,7 +87,7 @@
                             event.window.windowID,
                             event.window.data1,
                             event.window.data2,
-                            SDL_GetWindowDisplay(window));
+                            SDL_GetWindowDisplayIndex(window));
                     }
                 }
             }