Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex()
This commit is contained in:
parent
ac0f89315c
commit
5e519b21ed
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue