From 70139aed3fb855a3eb17f158a832d3749b53d04f Mon Sep 17 00:00:00 2001 From: Le Juez Victor <90587919+Bigfoot71@users.noreply.github.com> Date: Sat, 4 May 2024 15:50:51 +0200 Subject: [PATCH] added overload for `DrawRoundedLines` This also fixes a compile-time error as the signature of `DrawRectangleRoundedLines()` had changed. --- include/Rectangle.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/Rectangle.hpp b/include/Rectangle.hpp index c234538d..a3966819 100644 --- a/include/Rectangle.hpp +++ b/include/Rectangle.hpp @@ -80,9 +80,13 @@ class Rectangle : public ::Rectangle { ::DrawRectangleRounded(*this, roundness, segments, color); } + void DrawRoundedLines(float roundness, int segments, ::Color color) const { + ::DrawRectangleRoundedLines(*this, roundness, segments, color); + } + void DrawRoundedLines(float roundness, int segments, float lineThick, ::Color color) const { - ::DrawRectangleRoundedLines(*this, roundness, segments, lineThick, color); + ::DrawRectangleRoundedLinesEx(*this, roundness, segments, lineThick, color); } /**