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

Modification in draw.rect #3229

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

Neri19
Copy link

@Neri19 Neri19 commented Nov 20, 2024

Changed the function rect in draw.c to call the function draw_round_rect with a radius positive or 0 to resolve issues with negative radii. In fact, in the doc, the radius can't be negative.
We can choose to raise an exception but i don't think that it's necessary.

Related to #2285
I don't know if it has been fixed by #2303

@Neri19 Neri19 requested a review from a team as a code owner November 20, 2024 09:58
@yunline yunline added draw pygame.draw bugfix PR that fixes bug labels Nov 20, 2024
@Matiiss
Copy link
Member

Matiiss commented Nov 21, 2024

A more relevant open PR addressing this issue would be #3158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR that fixes bug draw pygame.draw
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants