summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-04-24 11:16:35 +0200
committerRay <[email protected]>2022-04-24 11:16:35 +0200
commite1ee4b1466062d130b85e4a7763ceb7c3e05986f (patch)
tree960a17dbe1f25527e34d923adb9765a19496f1cc /src
parentd433de7efaeacd1852f80690fe5fdc5b8881f665 (diff)
downloadraylib-e1ee4b1466062d130b85e4a7763ceb7c3e05986f.tar.gz
raylib-e1ee4b1466062d130b85e4a7763ceb7c3e05986f.zip
Reviewed MouseScrollCallback() #2371
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 4d0883f2..6cff9e18 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -5404,10 +5404,10 @@ static void MouseCursorPosCallback(GLFWwindow *window, double x, double y)
#endif
}
-// GLFW3 Srolling Callback, runs on mouse wheel
+// GLFW3 Scrolling Callback, runs on mouse wheel
static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffset)
{
- if (xoffset != 0.0) CORE.Input.Mouse.currentWheelMove = (float)xoffset;
+ if ((float)xoffset != 0.0f) CORE.Input.Mouse.currentWheelMove = (float)xoffset;
else CORE.Input.Mouse.currentWheelMove = (float)yoffset;
}