include/SDL_video.h
changeset 1963 2590b68531ef
parent 1956 ba0d62354872
child 1965 a788656ca29a
     1.1 --- a/include/SDL_video.h	Sun Jul 30 08:09:20 2006 +0000
     1.2 +++ b/include/SDL_video.h	Wed Aug 02 03:20:52 2006 +0000
     1.3 @@ -403,13 +403,24 @@
     1.4   *
     1.5   * \brief Set the index of the currently selected display.
     1.6   *
     1.7 + * \return 0 on success, or -1 if the index is out of range.
     1.8 + *
     1.9 + * \sa SDL_GetNumVideoDisplays()
    1.10 + * \sa SDL_GetCurrentVideoDisplay()
    1.11 + */
    1.12 +extern DECLSPEC int SDLCALL SDL_SelectVideoDisplay(int index);
    1.13 +
    1.14 +/**
    1.15 + * \fn int SDL_GetCurrentVideoDisplay(void)
    1.16 + *
    1.17 + * \brief Get the index of the currently selected display.
    1.18 + *
    1.19   * \return The index of the currently selected display.
    1.20   *
    1.21 - * \note You can query the currently selected display by passing an index of -1.
    1.22 - *
    1.23   * \sa SDL_GetNumVideoDisplays()
    1.24 + * \sa SDL_SelectVideoDisplay()
    1.25   */
    1.26 -extern DECLSPEC int SDLCALL SDL_SelectVideoDisplay(int index);
    1.27 +extern DECLSPEC int SDLCALL SDL_GetCurrentVideoDisplay(void);
    1.28  
    1.29  /**
    1.30   * \fn int SDL_GetNumDisplayModes(void)