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

HighDPI Screen Scaling #98

Merged
merged 1 commit into from
Aug 25, 2024
Merged

Conversation

AnonymousII
Copy link
Contributor

This fixes issue #97:

Class ScreenScaling calculates the screen scaling factor set in windows under System -> Screen: Scaling (e.g. 225%) which is typically used for high screen resuolutions such as 4K screens.

MainForm::NotifyIcon_MouseClick calculation are fixed by taking into account the screen scaling factor - therefore MainForm will always be placed correctly on the screen for any scaling factor set.

Note: this change is completely transparent for users who don't use screen scaling and has no effect in this case:
X / 1 = X * 1 = X --> calculations remain unchanged

Note2: With this change the application remains DPI-unaware so no major redesign of the GUI is required

… scaling, e.g. 225%) for High DPI screens like 4K
@DubbleClick
Copy link
Member

Thank you, I will test and merge this over the next days.

@DubbleClick
Copy link
Member

Removed the howto commit, but the positioning seems to work ok. since there's no chance for 100% scaling, I'll merge this.

@DubbleClick DubbleClick merged commit ed01900 into gwdevhub:master Aug 25, 2024
2 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