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 rounded background #1845

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Fix rounded background #1845

merged 1 commit into from
Feb 8, 2024

Conversation

leolost2605
Copy link
Member

Fixes #1841
Closes #1843

Ok I did some digging so here is what I found and what I think is happening:
When clip bounds aren't set the full texture size is used as clip bounds. But when the texture isn't loaded yet the size is seen as 0 so clip bounds are set to 0 and the whole texture is clipped away because clip bounds aren't updated when the texture is loaded.

Anyways regardless of whether that's actually what's happening this PR fixes the issue for me without reintroducing #1815 :)

Fixes changing background going grey since removing setting clip bounds
@leolost2605 leolost2605 requested a review from lenemter February 8, 2024 21:21
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Works for me. Nice fix! Makes sense

@danirabbit danirabbit merged commit 48f09b1 into master Feb 8, 2024
4 checks passed
@danirabbit danirabbit deleted the leolost/fix-rounded-background branch February 8, 2024 21:42
leolost2605 added a commit that referenced this pull request Feb 9, 2024
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.

Changing wallpaper makes the background go grey
2 participants