sdlResetHint function
Reset a hint to the default value.
This will reset a hint to the value of the environment variable, or NULL if the environment isn't set. Callbacks will be called normally with this change.
\param name the hint to set. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_SetHint \sa SDL_ResetHints
extern SDL_DECLSPEC bool SDLCALL SDL_ResetHint(const char *name)
Implementation
bool sdlResetHint(String? name) {
final sdlResetHintLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<Utf8> name),
int Function(Pointer<Utf8> name)>('SDL_ResetHint');
final namePointer = name != null ? name.toNativeUtf8() : nullptr;
final result = sdlResetHintLookupFunction(namePointer) == 1;
calloc.free(namePointer);
return result;
}