Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 31, 2012
1 parent 09c8cfd commit de64420
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/SDL_video.h
Expand Up @@ -339,7 +339,7 @@ extern DECLSPEC SDL_DisplayMode * SDLCALL SDL_GetClosestDisplayMode(int displayI
* \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.
Expand Down
4 changes: 2 additions & 2 deletions src/video/SDL_video.c
Expand Up @@ -914,7 +914,7 @@ SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode *
}

int
SDL_GetWindowDisplay(SDL_Window * window)
SDL_GetWindowDisplayIndex(SDL_Window * window)
{
int displayIndex;
int i, dist;
Expand Down Expand Up @@ -976,7 +976,7 @@ SDL_GetWindowDisplay(SDL_Window * window)
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 {
Expand Down
2 changes: 1 addition & 1 deletion test/testwm2.c
Expand Up @@ -87,7 +87,7 @@ main(int argc, char *argv[])
event.window.windowID,
event.window.data1,
event.window.data2,
SDL_GetWindowDisplay(window));
SDL_GetWindowDisplayIndex(window));
}
}
}
Expand Down

0 comments on commit de64420

Please sign in to comment.