Mercurial > sdl-ios-xcode
diff include/SDL_video.h @ 1967:01e29c3e9a29
In general, fill in pointers to structures, rather than return them.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Aug 2006 22:34:23 +0000 |
parents | 6472256c21eb |
children | 9f589a1f74a5 |
line wrap: on
line diff
--- a/include/SDL_video.h Sat Aug 05 17:12:22 2006 +0000 +++ b/include/SDL_video.h Sat Aug 05 22:34:23 2006 +0000 @@ -432,7 +432,7 @@ extern DECLSPEC int SDLCALL SDL_GetNumDisplayModes(void); /** - * \fn const SDL_DisplayMode *SDL_GetDisplayMode(int index) + * \fn int SDL_GetDisplayMode(int index, SDL_DisplayMode *mode) * * \brief Retrieve information about a specific display mode. * @@ -444,23 +444,22 @@ * * \sa SDL_GetNumDisplayModes() */ -extern DECLSPEC const SDL_DisplayMode *SDLCALL SDL_GetDisplayMode(int index); +extern DECLSPEC int SDLCALL SDL_GetDisplayMode(int index, + SDL_DisplayMode * mode); /** - * \fn const SDL_DisplayMode *SDL_GetDesktopDisplayMode(void) + * \fn int SDL_GetDesktopDisplayMode(SDL_DisplayMode *mode) * * \brief Retrieve information about the desktop display mode for the current display. */ -extern DECLSPEC const SDL_DisplayMode *SDLCALL -SDL_GetDesktopDisplayMode(void); +extern DECLSPEC int SDLCALL SDL_GetDesktopDisplayMode(SDL_DisplayMode * mode); /** - * \fn const SDL_DisplayMode *SDL_GetCurrentDisplayMode(void) + * \fn int SDL_GetCurrentDisplayMode(SDL_DisplayMode *mode) * * \brief Retrieve information about the current display mode. */ -extern DECLSPEC const SDL_DisplayMode *SDLCALL -SDL_GetCurrentDisplayMode(void); +extern DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(SDL_DisplayMode * mode); /** * \fn SDL_DisplayMode *SDL_GetClosestDisplayMode(const SDL_DisplayMode *mode, SDL_DisplayMode *closest) @@ -499,13 +498,13 @@ * mode); /** - * \fn const SDL_DisplayMode *SDL_GetFullscreenDisplayMode(void) + * \fn int SDL_GetFullscreenDisplayMode(SDL_DisplayMode *mode) * * \brief Query the display mode used when a fullscreen window is visible * on the currently selected display. */ -extern DECLSPEC const SDL_DisplayMode *SDLCALL -SDL_GetFullscreenDisplayMode(void); +extern DECLSPEC int SDLCALL SDL_GetFullscreenDisplayMode(SDL_DisplayMode * + mode); /** * \fn int SDL_SetDisplayPalette(const SDL_Color *colors, int firstcolor, int ncolors)