include/SDL_video.h
changeset 3500 4b594623401b
parent 3493 40b1f7cb2062
child 3522 fa1abe1ff8b8
     1.1 --- a/include/SDL_video.h	Mon Nov 30 21:04:25 2009 +0000
     1.2 +++ b/include/SDL_video.h	Tue Dec 01 05:57:15 2009 +0000
     1.3 @@ -50,7 +50,8 @@
     1.4   *  \sa SDL_GetDesktopDisplayMode()
     1.5   *  \sa SDL_GetCurrentDisplayMode()
     1.6   *  \sa SDL_GetClosestDisplayMode()
     1.7 - *  \sa SDL_SetDisplayMode()
     1.8 + *  \sa SDL_SetWindowDisplayMode()
     1.9 + *  \sa SDL_GetWindowDisplayMode()
    1.10   */
    1.11  typedef struct
    1.12  {
    1.13 @@ -427,23 +428,25 @@
    1.14  
    1.15  /**
    1.16   *  \brief Set the display mode used when a fullscreen window is visible
    1.17 - *         on the currently selected display.
    1.18 + *         on the currently selected display.  By default the window's
    1.19 + *         dimensions and the desktop format and refresh rate are used.
    1.20   *  
    1.21 - *  \param mode The mode to use, or NULL for the desktop mode.
    1.22 + *  \param mode The mode to use, or NULL for the default mode.
    1.23   *  
    1.24   *  \return 0 on success, or -1 if setting the display mode failed.
    1.25   *  
    1.26   *  \sa SDL_SetWindowFullscreen()
    1.27   */
    1.28 -extern DECLSPEC int SDLCALL SDL_SetFullscreenDisplayMode(const SDL_DisplayMode
    1.29 +extern DECLSPEC int SDLCALL SDL_SetWindowDisplayMode(SDL_WindowID windowID,
    1.30 +                                                     const SDL_DisplayMode
    1.31                                                           * mode);
    1.32  
    1.33  /**
    1.34   *  \brief Fill in information about the display mode used when a fullscreen
    1.35   *         window is visible on the currently selected display.
    1.36   */
    1.37 -extern DECLSPEC int SDLCALL SDL_GetFullscreenDisplayMode(SDL_DisplayMode *
    1.38 -                                                         mode);
    1.39 +extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_WindowID windowID,
    1.40 +                                                     SDL_DisplayMode * mode);
    1.41  
    1.42  /**
    1.43   *  \brief Set the palette entries for indexed display modes.
    1.44 @@ -680,7 +683,7 @@
    1.45   *  
    1.46   *  \return 0 on success, or -1 if setting the display mode failed.
    1.47   *  
    1.48 - *  \sa SDL_SetFullscreenDisplayMode()
    1.49 + *  \sa SDL_WindowDisplayMode()
    1.50   */
    1.51  extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_WindowID windowID,
    1.52                                                      int fullscreen);