|
Size: 873
Comment: update content (w/ Sam); remove 'draft' note
|
Size: 891
Comment: update content - rectangle
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| ||'''rect'''||a pointer to the [[SDL_Rect]] to fill with the display bounds|| | ||'''rect'''||a pointer to the rectangle of type [[SDL_Rect]] to fill with the display bounds|| |
SDL_GetDisplayBounds
Use this function to get the desktop area represented by a display, with the primary display located at 0,0.
Contents
Syntax
int SDL_GetDisplayBounds(int index,
SDL_Rect* rect)
Function Parameters
index |
the index of the display to query |
rect |
a pointer to the rectangle of type SDL_Rect to fill with the display bounds |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
