Closed atomic-junky closed 2 months ago
This pull request implements window scaling and resizing based on screen DPI to improve usability on high-DPI displays. The changes involve modifying the WelcomeWindow behavior and introducing a new global App script to handle DPI-based scaling.
Files | Changes |
---|---|
Scripts/Global/App.gd |
Implemented DPI-based window scaling calculation |
Scripts/Windows/WelcomeWindow.gd |
Added window centering functionality |
Scripts/Windows/WelcomeWindow.gd |
Refactored window resizing logic |
Scripts/Windows/WelcomeWindow.gd |
Connected resized signal to update window position |
Okay, I'll try to find a solution.
Does it work better now? I took over the Godot c++ code logic.
Btw I created a discussion (in the discussion tab) I don't know if it has any interest but it does exist
Thank you, I'm glad it's working well!
When a screen has a hidpi, the window becomes very small, which makes it rather complicated to use at such a small size. The solution is to calculate the scale of the window according to the dpi of the screen.
Summary by Sourcery
Scale the application window according to the screen's DPI to ensure proper sizing on high-DPI displays and enhance user experience by centering the window upon resize.
New Features:
Enhancements: