summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
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