src/SDL_hints.c
changeset 5200 01bced9a4cc1
parent 5189 6f6a9340fb93
child 5262 b530ef003506
equal deleted inserted replaced
5199:164f20ba08eb 5200:01bced9a4cc1
    36 
    36 
    37 static SDL_Hint *SDL_hints;
    37 static SDL_Hint *SDL_hints;
    38 
    38 
    39 
    39 
    40 SDL_bool
    40 SDL_bool
    41 SDL_SetHint(const char *name, const char *value, SDL_HintPriority priority)
    41 SDL_SetHintWithPriority(const char *name, const char *value,
       
    42                         SDL_HintPriority priority)
    42 {
    43 {
    43     const char *env;
    44     const char *env;
    44     SDL_Hint *prev, *hint;
    45     SDL_Hint *prev, *hint;
    45 
    46 
    46     if (!name || !value) {
    47     if (!name || !value) {
    78     hint->next = SDL_hints;
    79     hint->next = SDL_hints;
    79     SDL_hints = hint;
    80     SDL_hints = hint;
    80     return SDL_TRUE;
    81     return SDL_TRUE;
    81 }
    82 }
    82 
    83 
       
    84 SDL_bool
       
    85 SDL_SetHint(const char *name, const char *value)
       
    86 {
       
    87     return SDL_SetHintWithPriority(name, value, SDL_HINT_NORMAL);
       
    88 }
       
    89 
    83 const char *
    90 const char *
    84 SDL_GetHint(const char *name)
    91 SDL_GetHint(const char *name)
    85 {
    92 {
    86     const char *env;
    93     const char *env;
    87     SDL_Hint *hint;
    94     SDL_Hint *hint;