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 Windows DPI awareness #53

Open
lordmauve opened this issue Jul 27, 2020 · 1 comment
Open

Support Windows DPI awareness #53

lordmauve opened this issue Jul 27, 2020 · 1 comment

Comments

@lordmauve
Copy link
Owner

Windows can be told that a process is DPI aware using this code:

try:
    ctypes.windll.shcore.SetProcessDpiAwareness(True)
except Exception:
    pass

Without this Windows will automatically enlarge the window on a high-dpi display, giving a fuzzier quality than either directly rendering at higher resolution or using our scaler system.

We should work out the best way to support this for apps that genuinely want to render at high-dpi if available.

@rdb
Copy link

rdb commented Sep 21, 2020

Speaking as a user of a high-DPI display, please don't set this without also adding some way to automatically upscale window size and UI elements in applications.

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

2 participants