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 incorrect Curve editor preview thumbnail scaling #94571

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jul 21, 2024

EDSCALE scaling was applied even though it shouldn't be, which led to pixelated thumbnails due to double scaling. For reference, AudioStream previews don't use EDSCALE and look fine at any editor scale (the editor itself already scales the thumbnail requests).

cc @Geometror - I noticed other preview generators such as the Gradient one also use EDSCALE. It should probably be removed there as well but I haven't done extensive testing yet.

Preview

Disregard the different background colors (I was using a slightly older commit than #94494 for the Before screenshots).

75% editor scale

Before After
Screenshot_20240721_055807 Screenshot_20240721_055752

175% editor scale

Before After
Screenshot_20240721_055830 Screenshot_20240721_055725

`EDSCALE` scaling was applied even though it shouldn't be, which led
to pixelated thumbnails due to double scaling. For reference,
AudioStream previews don't use `EDSCALE` and look fine at any editor
scale (the editor itself already scales the thumbnail requests).
@akien-mga akien-mga merged commit b56b8e8 into godotengine:master Jul 22, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the editor-curve-preview-fix-scaling branch July 22, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants