Skip to content

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

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
teatwig:master
Jan 12, 2025
Merged

[rshapes] Allow DrawRectangleRounded() to draw rectangles with a size < 1#4683
raysan5 merged 1 commit intoraysan5:masterfrom
teatwig:master

Conversation

@teatwig
Copy link
Copy Markdown
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
Copy Markdown
Owner

raysan5 commented Jan 12, 2025

@teatwig thanks for the review!

@teatwig
Copy link
Copy Markdown
Contributor Author

teatwig commented Jan 12, 2025

@raysan5 Thank you very much for the quick responses!

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