From cb05ef7f03673da0b54f0ef49b9ba4a0bbebf37b Mon Sep 17 00:00:00 2001 From: Krzysztof Szenk Date: Mon, 23 Mar 2026 22:22:21 +0100 Subject: [PATCH] [rcore_desktop_rgfw] [emscripten] fix typo (#5687) * RGFW also requires RGBA8 images as window icons, as raylib already reports in raylib.h * LibraryConfigurations.cmake: exchanged MATCHES -> STREQUAL in platform choosing if-statements * WebRGFW: remapping mouse/touch position to canvas pixel coordinates * fix 'typo' * has to be done like that because of += in case of captured mouse * [rcore_desktop_rgfw] [emscripten] fix typo --- src/platforms/rcore_desktop_rgfw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index fb1fc6cf6..51a73e1ad 100755 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -1469,13 +1469,13 @@ void PollInputEvents(void) #endif if (RGFW_window_isCaptured(platform.window)) { - CORE.Input.Mouse.currentPosition.x += event_x; - CORE.Input.Mouse.currentPosition.y += event_y; + CORE.Input.Mouse.currentPosition.x += mouseX; + CORE.Input.Mouse.currentPosition.y += mouseY; } else { - CORE.Input.Mouse.currentPosition.x = event_x; - CORE.Input.Mouse.currentPosition.y = event_y; + CORE.Input.Mouse.currentPosition.x = mouseX; + CORE.Input.Mouse.currentPosition.y = mouseY; } CORE.Input.Touch.position[0] = CORE.Input.Mouse.currentPosition;