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

Code refactoring of draw.c #1552

Merged
merged 1 commit into from Jan 19, 2020
Merged

Code refactoring of draw.c #1552

merged 1 commit into from Jan 19, 2020

Conversation

MightyJosip
Copy link
Contributor

With the recent changes to the draw.c module a lot of old code is not necessary any more. With this update I deleted some old functions, removed old variables used to store bounding rects (now it is stored in list modified during drawing algorithm), changed how aaline is being drawn (end result is still the same, but the code is a lot smaller), fixed the naming of some variables and functions...

Copy link
Member

@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of nice cleanups in here. I like how you've moved some macros into functions. Also, 560 less lines is always good!

@illume
Copy link
Member

illume commented Jan 19, 2020

I'm testing it manually on Mac, because travis CI mac builds are currently broken.

@illume illume merged commit 2e542d6 into pygame:master Jan 19, 2020
@illume illume added the draw pygame.draw label May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draw pygame.draw
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants