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 an invalid editor window size on second startup at the hidpi display #682

Conversation

Vlad2001MFS
Copy link
Contributor

@Vlad2001MFS Vlad2001MFS commented Oct 7, 2024

Probably was broken in the 811a13426ddb808e778c6ac436671eef87aab9af commit for the #453 issue, but issue still not fixed.
The window_size field is used as the PhysicalSize in all other cases.

Editor start with a size greater than a display size if it takes the window size from the settings.ron.
image

Maybe the problem of the #453 what the logical_size is used for the user_interfaces actions when in other places in code the PhysicalSize was passed to render related code? What if some of that places also needs in the LogicalSize instead of the PhysicalSize?

Host PC info:
OS: Windows 11 23H2
Display: 1920x1080 scaling 150%, 2560x1440 scaling 150%

Probably was broken in the 811a134 commit for the FyroxEngine#453 issue, but issue still not fixed.

The window_size field is used as the PhysicalSize in all other cases.
@Vlad2001MFS Vlad2001MFS force-pushed the fix_453_invalid_editor_window_size_hidpi branch from 26b84b5 to 3e066c3 Compare October 7, 2024 12:08
@mrDIMAS mrDIMAS merged commit 4c94fc5 into FyroxEngine:master Oct 7, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants