Skip to content

Fix GUI cam on_resize examples #2572

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

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

cdeil
Copy link
Contributor

@cdeil cdeil commented Feb 17, 2025

In arcade/examples/sprite_move_scrolling.py the call to self.camera_gui.match_window() doesn't work, after resize it's misplaced (see screenshot). Another case of #2540 .

Calling self.camera_gui.match_window(position=True) does fix the issue, but also simply removing the call completely fixes the issue, so that's what I did here.

In arcade/examples/sprite_move_scrolling_shake.py there was a similar case, but there the camera_gui was completely unused, so I removed it.

Screenshot 2025-02-17 at 12 56 55

@eruvanos eruvanos merged commit fb309c9 into pythonarcade:development Feb 17, 2025
8 checks passed
@eruvanos
Copy link
Member

Thank you

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.

2 participants