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

Run display autoinit on window API, fixes #2860

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

ankith26
Copy link
Member

fixes #2605

This PR takes the display.set_mode-like approach and implicitly calls display init whenever a window is constructed.

@ankith26 ankith26 requested a review from a team as a code owner May 19, 2024 07:20
@ankith26 ankith26 force-pushed the ankith26-window-autoinit branch from 0361ccd to e5c5ae1 Compare May 19, 2024 15:04
src_c/window.c Outdated Show resolved Hide resolved
@ankith26 ankith26 force-pushed the ankith26-window-autoinit branch from e5c5ae1 to ed157de Compare May 21, 2024 19:10
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.

OK, LGTM 👍

Copy link
Member

@oddbookworm oddbookworm left a comment

Choose a reason for hiding this comment

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

LGTM

@oddbookworm oddbookworm merged commit aead275 into main May 23, 2024
39 checks passed
@oddbookworm oddbookworm added this to the 2.5.0 milestone May 23, 2024
@ankith26 ankith26 deleted the ankith26-window-autoinit branch May 23, 2024 05:08
@robertpfeiffer
Copy link
Contributor

robertpfeiffer commented May 23, 2024

is this really how we want to to things? Why not a warning that pygame is not initialised?

@ankith26
Copy link
Member Author

I would not have minded the raise warning/error approach, but then I also don't see a problem with the currently implemented approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maximizing a window invalidates the window surface
4 participants