-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Undeprecate draw aaline blend #2743
Undeprecate draw aaline blend #2743
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps the formatting changes that are unrelated to this PR should be a separate PR? It's probably the new version of clang-format messing things up. It has been causing my PRs to fail too
I opened #2744 to apply the formatting changes. I can rebase this pull when that merges |
I think it’s fine to leave the feature removed (commits don’t need to be reverted). It’s just that the parameter should be un-removed and should always raise a depreciation warning. |
…ut it always raises an exception when used
674a0c2
to
9069359
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the PR 🎉
src_c/draw.c
Outdated
@@ -105,18 +105,29 @@ aaline(PyObject *self, PyObject *arg, PyObject *kwargs) | |||
PyObject *colorobj, *start, *end; | |||
SDL_Surface *surf = NULL; | |||
float startx, starty, endx, endy; | |||
PyObject *blend; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this start as null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alrighty, thanks! Code looks good, haven't tested locally.
fixes #2739 and properly deprecates the blend argument so that if it's used, a warning will always be emitted instead of just false