mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-10 21:55:31 +00:00
SDL_SetHintWithPriority: better test if hint value has changed.
This commit is contained in:
parent
55a07d91fa
commit
c391bdc160
|
@ -66,7 +66,7 @@ SDL_SetHintWithPriority(const char *name, const char *value,
|
||||||
if (priority < hint->priority) {
|
if (priority < hint->priority) {
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
if (!hint->value || !value || SDL_strcmp(hint->value, value) != 0) {
|
if ( ((hint->value == NULL) != (value == NULL)) || (value && (SDL_strcmp(hint->value, value) != 0)) ) {
|
||||||
for (entry = hint->callbacks; entry; ) {
|
for (entry = hint->callbacks; entry; ) {
|
||||||
/* Save the next entry in case this one is deleted */
|
/* Save the next entry in case this one is deleted */
|
||||||
SDL_HintWatch *next = entry->next;
|
SDL_HintWatch *next = entry->next;
|
||||||
|
|
Loading…
Reference in a new issue