src/SDL_hints.c
changeset 7191 75360622e65f
parent 6885 700f1b25f77f
child 7432 58908b180ebd
equal deleted inserted replaced
7190:11612d544fcd 7191:75360622e65f
    39 
    39 
    40 SDL_bool
    40 SDL_bool
    41 SDL_RegisterHintChangedCb(const char *name, SDL_HintChangedCb hintCb)
    41 SDL_RegisterHintChangedCb(const char *name, SDL_HintChangedCb hintCb)
    42 {
    42 {
    43     SDL_Hint *hint;
    43     SDL_Hint *hint;
    44 	
    44 
    45     for (hint = SDL_hints; hint; hint = hint->next) {
    45     for (hint = SDL_hints; hint; hint = hint->next) {
    46         if (SDL_strcmp(name, hint->name) == 0) {
    46         if (SDL_strcmp(name, hint->name) == 0) {
    47             hint->callback = hintCb;
    47             hint->callback = hintCb;
    48             return SDL_TRUE;
    48             return SDL_TRUE;
    49         }
    49         }
    50     }
    50     }
    51 	
    51 
    52     return SDL_FALSE;
    52     return SDL_FALSE;
    53 }
    53 }
    54 
    54 
    55 SDL_bool
    55 SDL_bool
    56 SDL_SetHintWithPriority(const char *name, const char *value,
    56 SDL_SetHintWithPriority(const char *name, const char *value,