diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index 43d80c77d..e9263cb04 100755 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -178,12 +178,12 @@ typedef struct { RGFW_monitor *monitor; mg_gamepads minigamepad; - #if defined(GRAPHICS_API_OPENGL_SOFTWARE) - RGFW_surface *surface; - u8 *surfacePixels; - i32 surfaceWidth; - i32 surfaceHeight; - #endif +#if defined(GRAPHICS_API_OPENGL_SOFTWARE) + RGFW_surface *surface; + u8 *surfacePixels; + i32 surfaceWidth; + i32 surfaceHeight; +#endif } PlatformData; //---------------------------------------------------------------------------------- @@ -1352,7 +1352,7 @@ void PollInputEvents(void) { // set flag that the window was resized CORE.Window.resizedLastFrame = true; - + #if defined(__APPLE__) if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI)) { diff --git a/src/platforms/rcore_desktop_win32.c b/src/platforms/rcore_desktop_win32.c index 86a6c01c0..a797234ba 100644 --- a/src/platforms/rcore_desktop_win32.c +++ b/src/platforms/rcore_desktop_win32.c @@ -1526,7 +1526,6 @@ int InitPlatform(void) if (hr < 0) TRACELOG(LOG_ERROR, "%s failed, hresult=0x%lx", "SetProcessDpiAwareness", (DWORD)hr); } */ - HINSTANCE hInstance = GetModuleHandleW(0); // Define window class @@ -1775,9 +1774,9 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara // WARNING: Don't trust the docs, they say this message can not be obtained if not calling DefWindowProc() // in response to WM_WINDOWPOSCHANGED but looks like when a window is created, // this message can be obtained without getting WM_WINDOWPOSCHANGED - + #if defined(GRAPHICS_API_OPENGL_SOFTWARE) - // WARNING: Waiting two frames before resizing because software-renderer backend is initilized with swInit() later + // WARNING: Waiting two frames before resizing because software-renderer backend is initilized with swInit() later // than InitPlatform(), that triggers WM_SIZE, so avoid crashing if (CORE.Time.frameCounter > 2) HandleWindowResize(hwnd, &platform.appScreenWidth, &platform.appScreenHeight); #else diff --git a/src/rcore.c b/src/rcore.c index 61bb10386..6672302dd 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -442,18 +442,6 @@ typedef enum AutomationEventType { ACTION_SETTARGETFPS // param[0]: fps } AutomationEventType; -// Event type to config events flags -// WARNING: Not used at the moment -typedef enum { - EVENT_INPUT_KEYBOARD = 0, - EVENT_INPUT_MOUSE = 1, - EVENT_INPUT_GAMEPAD = 2, - EVENT_INPUT_TOUCH = 4, - EVENT_INPUT_GESTURE = 8, - EVENT_WINDOW = 16, - EVENT_CUSTOM = 32 -} EventType; - // Event type name strings, required for export static const char *autoEventTypeName[] = { "EVENT_NONE", @@ -482,16 +470,6 @@ static const char *autoEventTypeName[] = { "ACTION_SETTARGETFPS" }; -/* -// Automation event (24 bytes) -// NOTE: Opaque struct, internal to raylib -struct AutomationEvent { - unsigned int frame; // Event frame - unsigned int type; // Event type (AutomationEventType) - int params[4]; // Event parameters (if required) -}; -*/ - static AutomationEventList *currentEventList = NULL; // Current automation events list, set by user, keep internal pointer static bool automationEventRecording = false; // Recording automation events flag //static short automationEventEnabled = 0b0000001111111111; // TODO: Automation events enabled for recording/playing diff --git a/src/rshapes.c b/src/rshapes.c index fa7f2cf2f..c06f20462 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -1434,7 +1434,7 @@ void DrawTriangleGradient(Vector2 v1, Vector2 v2, Vector2 v3, Color c1, Color c2 rlBegin(RL_QUADS); rlNormal3f(0.0f, 0.0f, 1.0f); - + rlColor4ub(c1.r, c1.g, c1.b, c1.a); rlTexCoord2f(shapeRect.x/texShapes.width, shapeRect.y/texShapes.height); rlVertex2f(v1.x, v1.y);