Mercurial > sdl-ios-xcode
diff include/SDL_hints.h @ 5203:01bced9a4cc1
Created a simpler version of SDL_SetHint() that doesn't need a priority.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Feb 2011 20:02:37 -0800 |
parents | ef5a61ea3202 |
children | ce4f91138031 |
line wrap: on
line diff
--- a/include/SDL_hints.h Sat Feb 05 16:07:10 2011 -0800 +++ b/include/SDL_hints.h Sat Feb 05 20:02:37 2011 -0800 @@ -106,7 +106,7 @@ /** - * \brief Set a hint + * \brief Set a hint with a specific priority * * The priority controls the behavior when setting a hint that already * has a value. Hints will replace existing hints of their priority and @@ -114,9 +114,18 @@ * * \return SDL_TRUE if the hint was set, SDL_FALSE otherwise */ +extern DECLSPEC SDL_bool SDLCALL SDL_SetHintWithPriority(const char *name, + const char *value, + SDL_HintPriority priority); + +/** + * \brief Set a hint with normal priority + * + * \return SDL_TRUE if the hint was set, SDL_FALSE otherwise + */ extern DECLSPEC SDL_bool SDLCALL SDL_SetHint(const char *name, - const char *value, - SDL_HintPriority priority); + const char *value); + /** * \brief Get a hint