From cf331ef3f981e7d6c42f81d70dc5b453aae44989 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 2 Oct 2022 17:25:36 -0700
Subject: [PATCH] Fixed build
---
src/SDL_hints.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/SDL_hints.c b/src/SDL_hints.c
index 901c58b6346..4f2f5f61d3a 100644
--- a/src/SDL_hints.c
+++ b/src/SDL_hints.c
@@ -100,6 +100,7 @@ SDL_bool
SDL_ResetHint(const char *name)
{
const char *env;
+ SDL_Hint *hint;
SDL_HintWatch *entry;
if (!name) {
@@ -132,6 +133,7 @@ void
SDL_ResetHints(void)
{
const char *env;
+ SDL_Hint *hint;
SDL_HintWatch *entry;
for (hint = SDL_hints; hint; hint = hint->next) {
@@ -142,7 +144,7 @@ SDL_ResetHints(void)
for (entry = hint->callbacks; entry; ) {
/* Save the next entry in case this one is deleted */
SDL_HintWatch *next = entry->next;
- entry->callback(entry->userdata, name, hint->value, env);
+ entry->callback(entry->userdata, hint->name, hint->value, env);
entry = next;
}
}