mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-28 05:58:30 +00:00
Minor format tweaks
This commit is contained in:
@@ -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
|
// WARNING: GLFW could return GLFW_REPEAT, we need to consider it as 1
|
||||||
// to work properly with our implementation (IsKeyDown/IsKeyUp checks)
|
// to work properly with our implementation (IsKeyDown/IsKeyUp checks)
|
||||||
if (action == GLFW_RELEASE) CORE.Input.Keyboard.currentKeyState[key] = 0;
|
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_PRESS) CORE.Input.Keyboard.currentKeyState[key] = 1;
|
||||||
else if(action == GLFW_REPEAT) CORE.Input.Keyboard.keyRepeatInFrame[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
|
// 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)) ||
|
if (((key == KEY_CAPS_LOCK) && ((mods & GLFW_MOD_CAPS_LOCK) > 0)) ||
|
||||||
|
@@ -57,8 +57,8 @@
|
|||||||
#include "SDL3/SDL.h"
|
#include "SDL3/SDL.h"
|
||||||
#elif USING_SDL2_PROJECT
|
#elif USING_SDL2_PROJECT
|
||||||
#include "SDL2/SDL.h"
|
#include "SDL2/SDL.h"
|
||||||
#else
|
#else
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(GRAPHICS_API_OPENGL_ES2)
|
#if defined(GRAPHICS_API_OPENGL_ES2)
|
||||||
@@ -66,12 +66,12 @@
|
|||||||
//#include "SDL_opengles2.h"
|
//#include "SDL_opengles2.h"
|
||||||
#else
|
#else
|
||||||
// SDL OpenGL functionality (if required, instead of internal renderer)
|
// SDL OpenGL functionality (if required, instead of internal renderer)
|
||||||
#ifdef USING_SDL3_PROJECT
|
#ifdef USING_SDL3_PROJECT
|
||||||
#include "SDL3/SDL_opengl.h"
|
#include "SDL3/SDL_opengl.h"
|
||||||
#elif USING_SDL2_PROJECT
|
#elif USING_SDL2_PROJECT
|
||||||
#include "SDL2/SDL_opengl.h"
|
#include "SDL2/SDL_opengl.h"
|
||||||
#else
|
#else
|
||||||
#include "SDL_opengl.h"
|
#include "SDL_opengl.h"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -1547,7 +1547,8 @@ Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data,
|
|||||||
music.looping = true; // Looping enabled by default
|
music.looping = true; // Looping enabled by default
|
||||||
musicLoaded = true;
|
musicLoaded = true;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
drwav_uninit(ctxWav);
|
drwav_uninit(ctxWav);
|
||||||
RL_FREE(ctxWav);
|
RL_FREE(ctxWav);
|
||||||
}
|
}
|
||||||
|
@@ -168,7 +168,7 @@
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RL_GPUTEX_MALLOC RL_MALLOC
|
#define RL_GPUTEX_MALLOC RL_MALLOC
|
||||||
#define RL_GPUTEX_CALLOC RL_CALLOC
|
#define RL_GPUTEX_CALLOC RL_CALLOC
|
||||||
#define RL_GPUTEX_FREE RL_FREE
|
#define RL_GPUTEX_FREE RL_FREE
|
||||||
|
Reference in New Issue
Block a user