From 16bd18070f1d76158a6c56eebeb5d97b2d1a718f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=BBxy=2Ex?= Date: Sun, 17 Aug 2025 11:04:27 +0300 Subject: [PATCH] Fix SDL3 build if using package --- src/platforms/rcore_desktop_sdl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index f5b5d70d4..1d57a52f8 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -48,7 +48,9 @@ * **********************************************************************************************/ - +#ifdef USING_SDL3_PACKAGE + #define USING_SDL3_PROJECT +#endif #ifndef SDL_ENABLE_OLD_NAMES #define SDL_ENABLE_OLD_NAMES // Just in case we're on SDL3, we need some in-between compatibily #endif @@ -1620,7 +1622,7 @@ void PollInputEvents(void) // Add character (codepoint) to the queue #if defined(PLATFORM_DESKTOP_SDL3) unsigned int textLen = strlen(event.text.text); - unsigned int codepoint = (unsigned int)SDL_StepUTF8(&event.text.text, textLen); + unsigned int codepoint = (unsigned int)SDL_StepUTF8(&event.text.text, &textLen); #else int codepointSize = 0; int codepoint = GetCodepointNextSDL(event.text.text, &codepointSize);