mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
Reviewed #3313
This commit is contained in:
@@ -1050,7 +1050,7 @@ Ray GetMouseRay(Vector2 mouse, Camera camera)
|
|||||||
}
|
}
|
||||||
else if (camera.projection == CAMERA_ORTHOGRAPHIC)
|
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 top = camera.fovy/2.0;
|
||||||
double right = top*aspect;
|
double right = top*aspect;
|
||||||
|
|
||||||
@@ -1134,7 +1134,7 @@ Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int heigh
|
|||||||
}
|
}
|
||||||
else if (camera.projection == CAMERA_ORTHOGRAPHIC)
|
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 top = camera.fovy/2.0;
|
||||||
double right = top*aspect;
|
double right = top*aspect;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user