sdl2-compat: Use the hint constants instead of hardcoded strings

From 1e8adbce7caecfa8efc9bf57e1baf5692934f000 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 15 Feb 2025 08:17:26 -0800
Subject: [PATCH] Use the hint constants instead of hardcoded strings

---
 src/sdl2_compat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index df86eab..1fabfbf 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -5775,7 +5775,7 @@ SDL_AudioInit(const char *driver_name)
     SynchronizeEnvironmentVariables();
 
     if (driver_name) {
-        SDL3_SetHint("SDL_AUDIO_DRIVER", driver_name);
+        SDL3_SetHint(SDL_HINT_AUDIO_DRIVER, driver_name);
     }
 
     return InitSubsystemInternal(SDL_INIT_AUDIO);
@@ -5983,7 +5983,7 @@ SDL_VideoInit(const char *driver_name)
     SynchronizeEnvironmentVariables();
 
     if (driver_name) {
-        SDL3_SetHint("SDL_VIDEO_DRIVER", driver_name);
+        SDL3_SetHint(SDL_HINT_VIDEO_DRIVER, driver_name);
     }
 
     return InitSubsystemInternal(SDL_INIT_VIDEO);