diff options
Diffstat (limited to 'cam.c')
| -rw-r--r-- | cam.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ #include "cam.h" +#include "app.h" #include "reasings.h" #include <rcamera.h> @@ -410,7 +411,7 @@ cam_ctrl_orbit(void) { Vec3 up = Vector3Normalize( Vector3CrossProduct(right, forward)); - f32 scale = view_height / GetScreenHeight(); + f32 scale = view_height / app.scr_rec.height; Vec3 offset = Vector3Add( Vector3Scale(right, -delta.x * scale), Vector3Scale(up, delta.y * scale)); |
