include/SDL_video.h
changeset 1967 01e29c3e9a29
parent 1966 6472256c21eb
child 1968 9f589a1f74a5
     1.1 --- a/include/SDL_video.h	Sat Aug 05 17:12:22 2006 +0000
     1.2 +++ b/include/SDL_video.h	Sat Aug 05 22:34:23 2006 +0000
     1.3 @@ -432,7 +432,7 @@
     1.4  extern DECLSPEC int SDLCALL SDL_GetNumDisplayModes(void);
     1.5  
     1.6  /**
     1.7 - * \fn const SDL_DisplayMode *SDL_GetDisplayMode(int index)
     1.8 + * \fn int SDL_GetDisplayMode(int index, SDL_DisplayMode *mode)
     1.9   *
    1.10   * \brief Retrieve information about a specific display mode.
    1.11   *
    1.12 @@ -444,23 +444,22 @@
    1.13   *
    1.14   * \sa SDL_GetNumDisplayModes()
    1.15   */
    1.16 -extern DECLSPEC const SDL_DisplayMode *SDLCALL SDL_GetDisplayMode(int index);
    1.17 +extern DECLSPEC int SDLCALL SDL_GetDisplayMode(int index,
    1.18 +                                               SDL_DisplayMode * mode);
    1.19  
    1.20  /**
    1.21 - * \fn const SDL_DisplayMode *SDL_GetDesktopDisplayMode(void)
    1.22 + * \fn int SDL_GetDesktopDisplayMode(SDL_DisplayMode *mode)
    1.23   *
    1.24   * \brief Retrieve information about the desktop display mode for the current display.
    1.25   */
    1.26 -extern DECLSPEC const SDL_DisplayMode *SDLCALL
    1.27 -SDL_GetDesktopDisplayMode(void);
    1.28 +extern DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(SDL_DisplayMode * mode);
    1.29  
    1.30  /**
    1.31 - * \fn const SDL_DisplayMode *SDL_GetCurrentDisplayMode(void)
    1.32 + * \fn int SDL_GetCurrentDisplayMode(SDL_DisplayMode *mode)
    1.33   *
    1.34   * \brief Retrieve information about the current display mode.
    1.35   */
    1.36 -extern DECLSPEC const SDL_DisplayMode *SDLCALL
    1.37 -SDL_GetCurrentDisplayMode(void);
    1.38 +extern DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(SDL_DisplayMode * mode);
    1.39  
    1.40  /**
    1.41   * \fn SDL_DisplayMode *SDL_GetClosestDisplayMode(const SDL_DisplayMode *mode, SDL_DisplayMode *closest)
    1.42 @@ -499,13 +498,13 @@
    1.43                                                           * mode);
    1.44  
    1.45  /**
    1.46 - * \fn const SDL_DisplayMode *SDL_GetFullscreenDisplayMode(void)
    1.47 + * \fn int SDL_GetFullscreenDisplayMode(SDL_DisplayMode *mode)
    1.48   *
    1.49   * \brief Query the display mode used when a fullscreen window is visible
    1.50   *        on the currently selected display.
    1.51   */
    1.52 -extern DECLSPEC const SDL_DisplayMode *SDLCALL
    1.53 -SDL_GetFullscreenDisplayMode(void);
    1.54 +extern DECLSPEC int SDLCALL SDL_GetFullscreenDisplayMode(SDL_DisplayMode *
    1.55 +                                                         mode);
    1.56  
    1.57  /**
    1.58   * \fn int SDL_SetDisplayPalette(const SDL_Color *colors, int firstcolor, int ncolors)