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

Fix break when the OS resizes our window in set_mode #2992

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

oddbookworm
Copy link
Member

Hopefully fixes #2991. I suspect that there's a lot I missed, so @robertpfeiffer @ankith26 @Starbuck5 please take a long look at these changes.

I haven't found a reliable way we can predict what the size the OS will force small windows to is, so I resorted to seeing what SDL says it is. Maybe I could just manually go through the event queue instead of pumping and grabbing the size from there?

@oddbookworm oddbookworm added Gnu/Linux display pygame.display bugfix PR that fixes bug needs testing labels Jul 14, 2024
@oddbookworm oddbookworm requested a review from a team as a code owner July 14, 2024 21:39
src_c/display.c Outdated Show resolved Hide resolved
src_c/display.c Outdated Show resolved Hide resolved
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.

LGTM, thanks for the PR 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR that fixes bug display pygame.display Gnu/Linux needs testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux is broke, no idea cause
2 participants