summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2024-02-10 11:02:05 -0800
committerGitHub <[email protected]>2024-02-10 20:02:05 +0100
commit4cd71a975086fa3be3b28d765e45c4bb7dc4e101 (patch)
treee8cd9a2a8674804bdd14c1f8a76c1f1887874fcd /src/rcore.c
parentdd8b5613cab0d62a2464be5e3b45e835adedea0c (diff)
downloadraylib-4cd71a975086fa3be3b28d765e45c4bb7dc4e101.tar.gz
raylib-4cd71a975086fa3be3b28d765e45c4bb7dc4e101.zip
Fix warnings in raylib (#3793)
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 48c863f5..84e05e23 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1406,7 +1406,7 @@ void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture)
// Get a ray trace from mouse position
Ray GetMouseRay(Vector2 mousePosition, Camera camera)
{
- return GetViewRay(mousePosition, camera, GetScreenWidth(), GetScreenHeight());
+ return GetViewRay(mousePosition, camera, (float)GetScreenWidth(), (float)GetScreenHeight());
}
// Get a ray trace from the mouse position within a specific section of the screen