Skip to content

Conversation

@MaureenLeprince
Copy link

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

@MaureenLeprince MaureenLeprince 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

@MyreMylar MyreMylar closed this Dec 31, 2024
@MyreMylar
Copy link
Member

This branch (a main branch) now seems to have a selection of random changes smooshed together, and we also already have a PR tackling this subject so I'm closing it.

@Neri19 feel free to jump onto the other PR on this topic if you want to help get that one over the line.

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.

6 participants