include/SDL_video.h
changeset 3528 59ff7a2beb57
parent 3523 d38acda781ae
child 3536 0267b8b1595c
     1.1 --- a/include/SDL_video.h	Sun Dec 06 06:21:39 2009 +0000
     1.2 +++ b/include/SDL_video.h	Sun Dec 06 08:03:38 2009 +0000
     1.3 @@ -343,11 +343,22 @@
     1.4  /**
     1.5   *  \brief Returns the number of available video displays.
     1.6   *  
     1.7 + *  \sa SDL_GetDisplayBounds()
     1.8   *  \sa SDL_SelectVideoDisplay()
     1.9   */
    1.10  extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void);
    1.11  
    1.12  /**
    1.13 + *  \brief Get the desktop area represented by a display, with the primary
    1.14 + *         display located at 0,0
    1.15 + *  
    1.16 + *  \return 0 on success, or -1 if the index is out of range.
    1.17 + *  
    1.18 + *  \sa SDL_GetNumVideoDisplays()
    1.19 + */
    1.20 +extern DECLSPEC int SDLCALL SDL_GetDisplayBounds(int index, SDL_Rect * rect);
    1.21 +
    1.22 +/**
    1.23   *  \brief Set the index of the currently selected display.
    1.24   *  
    1.25   *  \return 0 on success, or -1 if the index is out of range.