shithub: qk1

Download patch

ref: 4a5b49f2976910054844e6ef2064270a59d881fa
parent: d86e96cdb918c1c516092b7cc6be8a0a8eacd53c
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Feb 3 16:44:10 EST 2025

fix the build: sdl3 renamed a hint

--- a/in_sdl.c
+++ b/in_sdl.c
@@ -111,7 +111,7 @@
 static void
 m_raw_cb(cvar_t *var)
 {
-	SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, var->value > 0 ? "0" : "1");
+	SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_CENTER, var->value > 0 ? "0" : "1");
 }
 
 void
@@ -166,7 +166,7 @@
 void
 IN_Init(void)
 {
-	SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "0");
+	SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_CENTER, "0");
 	m_raw.cb = m_raw_cb;
 	Cvar_RegisterVariable(&m_windowed);
 	Cvar_RegisterVariable(&m_filter);