Skip to content

Fix #3116: Visual artifacts with additional viewports#3181

Merged
duncanspumpkin merged 3 commits intoOpenLoco:masterfrom
ZehMatt:viewport-fix
Aug 14, 2025
Merged

Fix #3116: Visual artifacts with additional viewports#3181
duncanspumpkin merged 3 commits intoOpenLoco:masterfrom
ZehMatt:viewport-fix

Conversation

@ZehMatt
Copy link
Copy Markdown
Contributor

@ZehMatt ZehMatt commented Aug 5, 2025

My refactoring caused this, the issue is that viewports store their positions now relative to the parent (window) and it used that to shift the pixels which requires the absolute screen position. Viewports now store the owner so we can compute the correct position when the absolute one is needed, there was also an issue that invalidation didn't correctly work but on busy maps its hard to notice that.

Closes #3116

Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen left a comment

Choose a reason for hiding this comment

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

Looks good to me. Could you add a changelog entry?

@AaronVanGeffen AaronVanGeffen added this to the v25.07+ milestone Aug 5, 2025
@duncanspumpkin duncanspumpkin merged commit c1a682f into OpenLoco:master Aug 14, 2025
10 checks passed
@ZehMatt ZehMatt deleted the viewport-fix branch August 14, 2025 07:31
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.

Messages showing vehicle cause visual issues near top-left of screen

3 participants