Get the desktop area represented by a display.
Defined in <SDL3/SDL_video.h>
bool SDL_GetDisplayBounds(SDL_DisplayID displayID, SDL_Rect *rect);
SDL_DisplayID | displayID | the instance ID of the display to query. |
SDL_Rect * | rect | the SDL_Rect structure filled in with the display bounds. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
The primary display is always located at (0,0).
This function is available since SDL 3.1.3.