Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix GUI cam on_resize examples#2572

Merged
eruvanos merged 2 commits into
pythonarcade:developmentpythonarcade/arcade:developmentfrom
cdeil:cam-resize-examplescdeil/arcade:cam-resize-examplesCopy head branch name to clipboard
Feb 17, 2025
Merged

Fix GUI cam on_resize examples#2572
eruvanos merged 2 commits into
pythonarcade:developmentpythonarcade/arcade:developmentfrom
cdeil:cam-resize-examplescdeil/arcade:cam-resize-examplesCopy head branch name to clipboard

Conversation

@cdeil

@cdeil cdeil commented Feb 17, 2025

Copy link
Copy Markdown
Contributor

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
@eruvanos

Copy link
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.