Created a simpler version of SDL_SetHint() that doesn't need a priority.
This commit is contained in:
parent
8b3eb38df2
commit
a51c332dfe
2 changed files with 20 additions and 4 deletions
|
@ -38,7 +38,8 @@ static SDL_Hint *SDL_hints;
|
|||
|
||||
|
||||
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 @@ SDL_SetHint(const char *name, const char *value, SDL_HintPriority priority)
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue