Fix warnings in raylib (#3793)

This commit is contained in:
Jeffery Myers
2024-02-10 11:02:05 -08:00
committed by GitHub
parent dd8b5613ca
commit 4cd71a9750
3 changed files with 6 additions and 4 deletions

View File

@@ -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