Added an API function to query geometry of multiple monitors:
SDL_GetDisplayBounds() Implemented multi-monitor window positions on Windows --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404271
This commit is contained in:
parent
540357e23a
commit
52f2433c29
13 changed files with 124 additions and 34 deletions
|
@ -343,10 +343,21 @@ extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void);
|
|||
/**
|
||||
* \brief Returns the number of available video displays.
|
||||
*
|
||||
* \sa SDL_GetDisplayBounds()
|
||||
* \sa SDL_SelectVideoDisplay()
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void);
|
||||
|
||||
/**
|
||||
* \brief Get the desktop area represented by a display, with the primary
|
||||
* display located at 0,0
|
||||
*
|
||||
* \return 0 on success, or -1 if the index is out of range.
|
||||
*
|
||||
* \sa SDL_GetNumVideoDisplays()
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_GetDisplayBounds(int index, SDL_Rect * rect);
|
||||
|
||||
/**
|
||||
* \brief Set the index of the currently selected display.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue