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

[rshapes] Allow DrawRectangleRounded() to draw rectangles with a size < 1 #4683

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

teatwig
Copy link
Contributor

@teatwig teatwig commented Jan 12, 2025

As discussed in #4673 this removes the fallback to DrawRectangle() if the width or height is < 1.

Rounded rectangles with a size < 1 can already be drawn without issues if the check is removed and this behavior is desirable in cases where rounded rectangles are placed in between fractional world coordinates.

@raysan5 raysan5 merged commit 1cdf3bb into raysan5:master Jan 12, 2025
@raysan5
Copy link
Owner

raysan5 commented Jan 12, 2025

@teatwig thanks for the review!

@teatwig
Copy link
Contributor Author

teatwig commented Jan 12, 2025

@raysan5 Thank you very much for the quick responses!

ngynkvn pushed a commit to ngynkvn/raylib that referenced this pull request Jan 21, 2025
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.

2 participants