Get the index of the display primarily containing a rect
Defined in SDL_video.h
int SDL_GetRectDisplayIndex(const SDL_Rect * rect);
const SDL_Rect * | rect | the rect to query. |
(int) Returns the index of the display entirely containing the rect or closest to the center of the rect on success or a negative error code on failure; call SDL_GetError() for more information.
This function is available since SDL 2.24.0.