Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overload for DrawRoundedLines #315

Closed
wants to merge 1 commit into from

Conversation

Bigfoot71
Copy link
Contributor

@Bigfoot71 Bigfoot71 commented May 4, 2024

An error occurred during compilation for both the raylib master branch (raysan5/raylib@f100755) and the raylib-cpp master branch (c8a910e). I noticed that the ::DrawRectangleRoundedLines function no longer accepts the lineThick parameter.

It appears that this parameter has been removed to be added as a new "overload" ::DrawRectangleRoundedLinesEx.

Therefore, I've also added this overload to raylib-cpp. One overload doesn't take lineThick to call ::DrawRectangleRoundedLines, and the other takes lineThick to call ::DrawRectangleRoundedLinesEx.

Link to this new function: rshapes.c#L1097

This also fixes a compile-time error as the signature of `DrawRectangleRoundedLines()` had changed.
@RobLoach
Copy link
Owner

RobLoach commented May 4, 2024

Thanks! Great addition. Will hold off on merging this until it makes it into a 5.1 release or similar 👍

@RobLoach RobLoach added the Hold label May 4, 2024
@RobLoach RobLoach mentioned this pull request May 4, 2024
@RobLoach
Copy link
Owner

RobLoach commented May 4, 2024

Actually, brought this into the next branch so that we're ready for when 5.1 is released. Thanks!

@RobLoach RobLoach closed this May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants