-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Feature Request] High DPI support #5
Comments
This is a bit confounding because DPI awareness is per-process on Windows. For example, go-webview2 will magically work fine with high DPI if you do: dll := syscall.MustLoadDLL("user32")
if proc, err := dll.FindProc("SetProcessDpiAwarenessContext"); err == nil {
aware := -4
proc.Call(uintptr(aware))
} …but it will also impact everything else in process too, so doing this automatically may not be desirable. The same can be accomplished using manifests as well. Since this feature is really about making better Win32 apps with Go, maybe there can be some kind of helper package or recommended boilerplate that helps you get an ideal binary with backwards-compatible DPI awareness. |
This can indeed become clear, but the window will be smaller than when the system is zoomed, and the content will not be zoomed. |
Hmm? This method should work just fine. Try doing it in I understand that it would be nice to have it be automatic, but even if this library does have this method it has to be optional. Otherwise, it would make the library unusable for users using any other Win32 code that is not DPI aware. I apologize for the inconvenience. (Also, calls to |
High-resolution screen users need support, the demo now looks very vague (Windows11 125% zoom)
The text was updated successfully, but these errors were encountered: