From 141ae0cd312656b7764b01079e43fc887aaaf4ce Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 16 Nov 2023 12:59:35 +0100 Subject: [PATCH] Implemented new function DrawSplineSegmentBezierCubic, since the one being used had been deprecated (#350) --- examples/animation_curve/gui_curve_editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/animation_curve/gui_curve_editor.h b/examples/animation_curve/gui_curve_editor.h index ed855d0..abe956c 100644 --- a/examples/animation_curve/gui_curve_editor.h +++ b/examples/animation_curve/gui_curve_editor.h @@ -545,7 +545,7 @@ void GuiCurveEditor(GuiCurveEditorState *state, Rectangle bounds) const Vector2 screenC1 = (Vector2){ c1.x*innerBounds.width + innerBounds.x, innerBounds.y + innerBounds.height - c1.y*innerBounds.height }; const Vector2 screenC2 = (Vector2){ c2.x*innerBounds.width + innerBounds.x, innerBounds.y + innerBounds.height - c2.y*innerBounds.height }; - DrawLineBezierCubic(screenPos1, screenPos2, screenC1, screenC2, 1, curveColor); + DrawSplineSegmentBezierCubic(screenPos1, screenC1, screenC2, screenPos2, 1, curveColor); } } }