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

Incorrect UI scale in editor #48069

Closed
andersmmg opened this issue Apr 21, 2021 · 6 comments
Closed

Incorrect UI scale in editor #48069

andersmmg opened this issue Apr 21, 2021 · 6 comments
Labels

Comments

@andersmmg
Copy link

Godot version: 3.3.stable

OS/device including version: Manjaro Linux

Issue description:

The GUI in the editor is way too small. The scale is correct in 3.2 and older

image

Steps to reproduce:
N/A

Minimal reproduction project:

N/A

@clayjohn
Copy link
Member

What is your display resolution?

Maybe it is a result of this PR #43611

@andersmmg
Copy link
Author

My main display is 1366x768, and I have another 1920x1080. If I open it with the larger display connected as well, it's the right scale, so that pull request is probably the reason. Is there a way to stop the scale from changing?

@clayjohn
Copy link
Member

I'm not sure, but it looks like you can override the automatic display scale using interface/editor/custom_display_scale in the editor settings!

Give that a try and let me know how it goes.

@andersmmg
Copy link
Author

Yeah, that works! Cool, since the borders work on small scales now I might switch back sometimes but this did what I want for now. Thanks :)

@Calinou
Copy link
Member

Calinou commented Apr 21, 2021

What's surprising though is that your screenshot is 814 pixels tall, yet the 0.75 scale factor is being applied. The automatic 0.75 scale factor is supposed to only apply to displays less than 800 pixels tall:

godot/editor/editor_node.cpp

Lines 5713 to 5716 in f6d5b2f

} else if (DisplayServer::get_singleton()->screen_get_size(screen).y <= 800) {
// Small loDPI display. Use a smaller display scale so that editor elements fit more easily.
// Icons won't look great, but this is better than having editor elements overflow from its window.
scale = 0.75;

It appears you're using 100% scaling on KDE, so the reported DPI should be fairly low as well.

@andersmmg
Copy link
Author

Looking at it, I think the screenshot was taken on my external monitor to be able to see both windows easily. I plugged it in after launching both just to take the screenshot, so the engine just didn't know about the new display size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants