From eb7f8912f8d735c9d078744839659b73598fdb24 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 26 Jul 2025 12:50:29 +0200 Subject: [PATCH] Minor format tweaks --- src/platforms/rcore_desktop_glfw.c | 4 ++-- src/platforms/rcore_desktop_sdl.c | 14 +++++++------- src/raudio.c | 3 ++- src/rtextures.c | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index 038e1c649..d701691a1 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -1862,8 +1862,8 @@ static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, i // WARNING: GLFW could return GLFW_REPEAT, we need to consider it as 1 // to work properly with our implementation (IsKeyDown/IsKeyUp checks) if (action == GLFW_RELEASE) CORE.Input.Keyboard.currentKeyState[key] = 0; - else if(action == GLFW_PRESS) CORE.Input.Keyboard.currentKeyState[key] = 1; - else if(action == GLFW_REPEAT) CORE.Input.Keyboard.keyRepeatInFrame[key] = 1; + else if (action == GLFW_PRESS) CORE.Input.Keyboard.currentKeyState[key] = 1; + else if (action == GLFW_REPEAT) CORE.Input.Keyboard.keyRepeatInFrame[key] = 1; // WARNING: Check if CAPS/NUM key modifiers are enabled and force down state for those keys if (((key == KEY_CAPS_LOCK) && ((mods & GLFW_MOD_CAPS_LOCK) > 0)) || diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 98bbda76c..374acd72b 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -57,8 +57,8 @@ #include "SDL3/SDL.h" #elif USING_SDL2_PROJECT #include "SDL2/SDL.h" -#else - #include "SDL.h" +#else + #include "SDL.h" #endif #if defined(GRAPHICS_API_OPENGL_ES2) @@ -66,12 +66,12 @@ //#include "SDL_opengles2.h" #else // SDL OpenGL functionality (if required, instead of internal renderer) - #ifdef USING_SDL3_PROJECT - #include "SDL3/SDL_opengl.h" + #ifdef USING_SDL3_PROJECT + #include "SDL3/SDL_opengl.h" #elif USING_SDL2_PROJECT - #include "SDL2/SDL_opengl.h" - #else - #include "SDL_opengl.h" + #include "SDL2/SDL_opengl.h" + #else + #include "SDL_opengl.h" #endif #endif diff --git a/src/raudio.c b/src/raudio.c index ba1fba081..3301d7009 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1547,7 +1547,8 @@ Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, music.looping = true; // Looping enabled by default musicLoaded = true; } - else { + else + { drwav_uninit(ctxWav); RL_FREE(ctxWav); } diff --git a/src/rtextures.c b/src/rtextures.c index 022991531..bdfe83c71 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -168,7 +168,7 @@ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-function" #endif - + #define RL_GPUTEX_MALLOC RL_MALLOC #define RL_GPUTEX_CALLOC RL_CALLOC #define RL_GPUTEX_FREE RL_FREE