From bbbaae55621a854a6e69bcb9cfe1c6a5a8697e2c Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 8 Oct 2023 23:38:52 +0200 Subject: [PATCH] Reviewed #3313 --- src/rcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index 44b7ee787..ff7558dc3 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1050,7 +1050,7 @@ Ray GetMouseRay(Vector2 mouse, Camera camera) } else if (camera.projection == CAMERA_ORTHOGRAPHIC) { - float aspect = (float)CORE.Window.screen.width/(float)CORE.Window.screen.height; + double aspect = (double)CORE.Window.screen.width/(double)CORE.Window.screen.height; double top = camera.fovy/2.0; double right = top*aspect; @@ -1134,7 +1134,7 @@ Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int heigh } else if (camera.projection == CAMERA_ORTHOGRAPHIC) { - float aspect = (float)CORE.Window.screen.width/(float)CORE.Window.screen.height; + double aspect = (double)width/(double)height; double top = camera.fovy/2.0; double right = top*aspect;