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); } } }