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

relax convert conditions #2839

Merged
merged 8 commits into from
May 23, 2024
Merged

relax convert conditions #2839

merged 8 commits into from
May 23, 2024

Conversation

robertpfeiffer
Copy link
Contributor

There is no reason convert() has to wait for the display to be initialised. If a parameter with the target surface is provided, we can always convert.

@robertpfeiffer robertpfeiffer requested a review from a team as a code owner May 5, 2024 08:38
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

A small versionchanged entry in the docs for this and a simple test addition for this behaviour would be nice to have.

Copy link
Member

@MyreMylar MyreMylar left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@yunline yunline added enhancement Surface pygame.Surface labels May 8, 2024
@robertpfeiffer
Copy link
Contributor Author

@ankith26 I'll just change some convert tests to not create a window, is that OK?

@ankith26
Copy link
Member

Yes, that would be cool

@Starbuck5 Starbuck5 marked this pull request as draft May 20, 2024 20:54
@Starbuck5
Copy link
Member

Converted to a draft since it has some feedback left to resolve. Looks like a nice improvement!

Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

Need to run the formatter on the changed file, but apart from that this PR LGTM. Thanks! 🎉

PS: we now have pre-commit setup for handling the formatting

@robertpfeiffer
Copy link
Contributor Author

Can anybody please tell me why the CI is failing, I don't see any failing tests and just red marks

@robertpfeiffer robertpfeiffer marked this pull request as ready for review May 23, 2024 06:10
@oddbookworm
Copy link
Member

Can anybody please tell me why the CI is failing, I don't see any failing tests and just red marks

Error code 3221225477 is a segfault, but I don’t know what segfaulted from the log

@robertpfeiffer robertpfeiffer merged commit 0d1e826 into main May 23, 2024
38 of 39 checks passed
@ankith26 ankith26 added this to the 2.5.0 milestone May 23, 2024
@ankith26 ankith26 deleted the permissive-converting branch May 23, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants