Mercurial > sdl-ios-xcode
diff src/SDL_hints.c @ 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 | 6f6a9340fb93 |
children | b530ef003506 |
line wrap: on
line diff
--- a/src/SDL_hints.c Sat Feb 05 16:07:10 2011 -0800 +++ b/src/SDL_hints.c Sat Feb 05 20:02:37 2011 -0800 @@ -38,7 +38,8 @@ SDL_bool -SDL_SetHint(const char *name, const char *value, SDL_HintPriority priority) +SDL_SetHintWithPriority(const char *name, const char *value, + SDL_HintPriority priority) { const char *env; SDL_Hint *prev, *hint; @@ -80,6 +81,12 @@ return SDL_TRUE; } +SDL_bool +SDL_SetHint(const char *name, const char *value) +{ + return SDL_SetHintWithPriority(name, value, SDL_HINT_NORMAL); +} + const char * SDL_GetHint(const char *name) {