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

[GUI] Support HiDPI / toggle native resolution #2316

Closed
bobcao3 opened this issue May 3, 2021 · 1 comment
Closed

[GUI] Support HiDPI / toggle native resolution #2316

bobcao3 opened this issue May 3, 2021 · 1 comment
Labels
feature request Suggest an idea on this project

Comments

@bobcao3
Copy link
Collaborator

bobcao3 commented May 3, 2021

Concisely describe the proposed feature
Support HiDPI in the GUI or have a toggle to enable native resolution (client side scaling) so the output can be pixel-perfect on fractional scaling displays.

Describe the solution you'd like (if any)
This is relatively simple to implement on Windows and probably non-problem on Linux due to its quirks on X11 scaling & DPI protocols. (todo: attach a commit here) However it may be bad to just use client side scaling and ignoring the DPI, therefore some API changes will be needed to enable DPI aware GUI.

Additional comments
Reference the design of GLFW, SDL, and ImGUI

@bobcao3 bobcao3 added the feature request Suggest an idea on this project label May 3, 2021
@bobcao3
Copy link
Collaborator Author

bobcao3 commented May 3, 2021

Just checked the behavior of the OpenGL backend, it is using native resolution but it does not seem like the GUI is using the DPI information. Therefore having the WIN32 backend to be pixel perfect should be fine for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggest an idea on this project
Projects
None yet
Development

No branches or pull requests

1 participant