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

Support "Auto" scaling on Windows #216

Open
capricorn8 opened this issue Mar 1, 2025 · 1 comment
Open

Support "Auto" scaling on Windows #216

capricorn8 opened this issue Mar 1, 2025 · 1 comment
Assignees

Comments

@capricorn8
Copy link
Collaborator

capricorn8 commented Mar 1, 2025

Frequent feedback from users is that the focus point window exceeds their screen size.
While the plugin offers a means to handle this problem, and this is also part of the installation steps - it doesn't come as a surprise that users do not read documentation.

To avoid more users asking the same question, a mechanism is introduced so that the plugin can use the same exact scaling level as set in Windows settings (System, Display, Scale).

A new entry "Auto" is introduced that triggers the plugin to fetch the dpi scaling value from Windows Registry (HKCU\Control Pane\Desktop, LogPixels) and use this value to reduce the size of both Focus Points Viewer and Metadata Viewer dialog windows.

Image

The scaling factor is also logged:

03/01/2025 17:33:07 INFO FOCUSPOINTDIALOG | Display scaling level 115%

@capricorn8 capricorn8 self-assigned this Mar 1, 2025
@capricorn8
Copy link
Collaborator Author

The registry key HKCU\Control Pane\Desktop, LogPixels only exists if a custom scale factor has been set (e.g. "115%).

In order to determine the current display scaling including predefined scaling factors (100%, 125%, 150% etc.) the key HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics, AppliedDPI needs to be queried.

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

No branches or pull requests

1 participant