-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[4.0] Add 2D scale factor property #52170
Conversation
468f13a
to
0278c17
Compare
This has failing CI checks. |
The |
@akien-mga Yeah, I am really sorry about that. I have been really busy with university for the last few months right now and didn't have the time to dig deeper into the testcase that fails. |
f647479
to
d496ea4
Compare
@akien-mga Should now pass all checks. Again, I am sorry that I didn't have time for this sooner. |
d496ea4
to
c7a0341
Compare
Thanks! |
4.0 version of #52137. Bugsquad edit: Rebase of #21446
This can be used to make 2D elements larger or smaller, independently of the current stretch mode.
Only the disabled and canvas stretch modes support this new property.
As with the 3.x version this doesn't solve the image scaling problem (again, we would need godotengine/godot-proposals#2924).
In addition, font rendering currently looks weird when the scale factor is set to anything other than. After far too much time spent debugging I can now confirm that this is NOT caused by these changes. It would appear that font oversampling is currently broken. For more information please see #47957.Looks fine as of 17/12/2021 on linux. Guess someone already fixed font oversampling.2d-scaling-demo4.zip
Pinging @Calinou, since he wanted to port this to 4.0 himself.