Revert "SDL_SetHintWithPriority: better test if hint value has changed."

Actually, the original test was fine, disregard.

This reverts commit c391bdc160.
This commit is contained in:
Ryan C. Gordon 2022-06-06 09:36:20 -04:00
parent c391bdc160
commit 5f25a6ea78
No known key found for this signature in database
GPG Key ID: FA148B892AB48044

View File

@ -66,7 +66,7 @@ SDL_SetHintWithPriority(const char *name, const char *value,
if (priority < hint->priority) {
return SDL_FALSE;
}
if ( ((hint->value == NULL) != (value == NULL)) || (value && (SDL_strcmp(hint->value, value) != 0)) ) {
if (!hint->value || !value || SDL_strcmp(hint->value, value) != 0) {
for (entry = hint->callbacks; entry; ) {
/* Save the next entry in case this one is deleted */
SDL_HintWatch *next = entry->next;