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

[Renderers/SDL2] add rounded corner borders and fixed maximum radius issues. #258

Conversation

TimothyHoytBSME
Copy link
Contributor

Added a function to create rounded corner borders, in the same fashion as the rounded corner rectangle function.
Changed the border render section to call the new function for the four corners and to account for bounding box being smaller than combined border widths.
Also fixed one typo and added a conditional M_PI define if cmath constant is not present.

Fixes issue 257.

@CrossScarDev
Copy link

I hope this gets merged soon

@nicbarker
Copy link
Owner

Thanks for the great work here!

@nicbarker nicbarker merged commit eb55396 into nicbarker:main Feb 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants