From 9e6cd245e3c05d37eb687b82719f3bd430e163f7 Mon Sep 17 00:00:00 2001 From: Alexey Karnachev Date: Sat, 30 Dec 2023 16:46:47 +0400 Subject: [PATCH] fix typo --- examples/others/gizmo.c | 3 ++- examples/others/gizmo.h | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/others/gizmo.c b/examples/others/gizmo.c index d6e531c55..4aa619f3e 100644 --- a/examples/others/gizmo.c +++ b/examples/others/gizmo.c @@ -25,7 +25,8 @@ #define CAMERA_ZOOM_SPEED 1.0f // Updates the camera in the orbital-style, i.e camera rotates around the look-at point by the orbit -static void updateCamera(Camera3D* camera) { +static void updateCamera(Camera3D* camera) +{ bool isMMBDown = IsMouseButtonDown(2); bool isShiftDown = IsKeyDown(KEY_LEFT_SHIFT); Vector2 mouseDelta = GetMouseDelta(); diff --git a/examples/others/gizmo.h b/examples/others/gizmo.h index dca952d87..181336e46 100644 --- a/examples/others/gizmo.h +++ b/examples/others/gizmo.h @@ -308,7 +308,7 @@ static RayCollision getRayPlaneCollision( return collision; } -static Handles getSortedHandled(Handle h0, Handle h1, Handle h2) { +static Handles getSortedHandles(Handle h0, Handle h1, Handle h2) { if (h0.distToCamera < h1.distToCamera) SWAP(h0, h1); if (h1.distToCamera < h2.distToCamera) SWAP(h1, h2); if (h0.distToCamera < h1.distToCamera) SWAP(h0, h1); @@ -346,7 +346,7 @@ static void drawAxisHandles( Handle hy = {py, Y_AXIS, colorY, Vector3DistanceSqr(py, camera.position)}; Handle hz = {pz, Z_AXIS, colorZ, Vector3DistanceSqr(pz, camera.position)}; - Handles handles = getSortedHandled(hx, hy, hz); + Handles handles = getSortedHandles(hx, hy, hz); for (int i = 0; i < 3; ++i) { Handle* h = &handles.arr[i]; @@ -377,7 +377,7 @@ static void drawPlaneHandles( Handle hy = {py, Y_AXIS, colorY, Vector3DistanceSqr(py, camera.position)}; Handle hz = {pz, X_AXIS, colorZ, Vector3DistanceSqr(pz, camera.position)}; - Handles handles = getSortedHandled(hx, hy, hz); + Handles handles = getSortedHandles(hx, hy, hz); rlDisableBackfaceCulling(); for (int i = 0; i < 3; ++i) {