Mercurial > sdl-ios-xcode
comparison include/SDL_video.h @ 3528:59ff7a2beb57
Added an API function to query geometry of multiple monitors:
SDL_GetDisplayBounds()
Implemented multi-monitor window positions on Windows
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 06 Dec 2009 08:03:38 +0000 |
parents | d38acda781ae |
children | 0267b8b1595c |
comparison
equal
deleted
inserted
replaced
3527:444cb12cadb6 | 3528:59ff7a2beb57 |
---|---|
341 extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void); | 341 extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void); |
342 | 342 |
343 /** | 343 /** |
344 * \brief Returns the number of available video displays. | 344 * \brief Returns the number of available video displays. |
345 * | 345 * |
346 * \sa SDL_GetDisplayBounds() | |
346 * \sa SDL_SelectVideoDisplay() | 347 * \sa SDL_SelectVideoDisplay() |
347 */ | 348 */ |
348 extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void); | 349 extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void); |
350 | |
351 /** | |
352 * \brief Get the desktop area represented by a display, with the primary | |
353 * display located at 0,0 | |
354 * | |
355 * \return 0 on success, or -1 if the index is out of range. | |
356 * | |
357 * \sa SDL_GetNumVideoDisplays() | |
358 */ | |
359 extern DECLSPEC int SDLCALL SDL_GetDisplayBounds(int index, SDL_Rect * rect); | |
349 | 360 |
350 /** | 361 /** |
351 * \brief Set the index of the currently selected display. | 362 * \brief Set the index of the currently selected display. |
352 * | 363 * |
353 * \return 0 on success, or -1 if the index is out of range. | 364 * \return 0 on success, or -1 if the index is out of range. |