Get the index of the display primarily containing a rect
Defined in SDL_video.h
rect | the rect to query |
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.