summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-08 23:38:52 +0200
committerRay <[email protected]>2023-10-08 23:38:52 +0200
commitbbbaae55621a854a6e69bcb9cfe1c6a5a8697e2c (patch)
tree9fa11974bee1a20ed2a966acbc23e6671041511d /src
parentfecf56e15aaba160aefe14b241de19262a20ab3e (diff)
downloadraylib-bbbaae55621a854a6e69bcb9cfe1c6a5a8697e2c.tar.gz
raylib-bbbaae55621a854a6e69bcb9cfe1c6a5a8697e2c.zip
Reviewed #3313
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 44b7ee78..ff7558dc 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;