godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.38k stars 21.26k forks source link

Editor scales incorrectly when resolution changes #23409

Closed marcJV closed 6 years ago

marcJV commented 6 years ago

Godot version: 3.1.alpha.official This also has happened in 3.0.1+

OS/device including version: macOS Mojave Version 10.14 OpenGL ES 3.0 Renderer: AMD Radeon Pro 560 OpenGL Engine

Issue description: When the window is introduced to a different resolution, it scales incorrectly.

Steps to reproduce: Two ways to introduce this: Connect to a thunderbolt display, drag window to the macbook's screen. Before -- Normal Editor Scaling --

After - from Thunderbolt to Macbook's Retina Display -- Smaller than normal Editor Scaling --

If you start from the Macbook's screen, the editor is scaled correctly, but when it is dragged to the thunderbolt display the UI is larger than normal:

After-From Macbook's Retina Display to Thunderbolt -- Larger than normal Editor Scaling --

Same thing happens when the monitor is disconnected, if it is on the external display, the UI will be scaled incorrectly. Also happens on the launcher, making it very difficult to use.

The only way to get it to scale correctly again is to close out completely and reopen Godot on the correct display or move it back to the display it was opened on.

Minimal reproduction project: Any project will work.

akien-mga commented 6 years ago

Duplicate of #5688.