mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
A hint with an empty string should be treated as the default value
This commit is contained in:
parent
eaab6098eb
commit
b3ac0b6fb0
@ -122,7 +122,7 @@ SDL_bool
|
||||
SDL_GetHintBoolean(const char *name, SDL_bool default_value)
|
||||
{
|
||||
const char *hint = SDL_GetHint(name);
|
||||
if (!hint) {
|
||||
if (!hint || !*hint) {
|
||||
return default_value;
|
||||
}
|
||||
if (*hint == '0' || SDL_strcasecmp(hint, "false") == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user