diff 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
line wrap: on
line diff
--- a/include/SDL_video.h	Sun Dec 06 06:21:39 2009 +0000
+++ b/include/SDL_video.h	Sun Dec 06 08:03:38 2009 +0000
@@ -343,11 +343,22 @@
 /**
  *  \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.
  *  
  *  \return 0 on success, or -1 if the index is out of range.