I switch between two HiDPI displays and their scaling is different.
Unless I restart GVim, its scaling remains fixed after I switch displays.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
On Windows?
Right, Vim doesn't support per-monitor DPI now.
I haven't checked how to support it.
On Windows?
Ah, you wrote that in the title.
Suffer from this too, on Windows x64.
My primary 1440p monitor is good, my 4k secondary monitor blurs.
This can be fixed by calling SetDPIAwareness(2) at init time and then responding to the appropriate window message by scaling fonts, window size etc.
I've never done it, but my 10 minute glance at it leads me to that.
how about a PR then?
Documentation: https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Manually enabling GDI scaling works well, per https://vi.stackexchange.com/questions/16622/how-to-adjust-gvim-to-my-hidpi-display-scaling-on-windows-10, perhaps you could simply enable this in an application manifest?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
![]()
so, how about a patch then?
—
You are receiving this because you are subscribed to this thread.
Enabling gdiScaling is just a workaround, I think.
The proper solution sould be to implement PerMonitorV2 support, but it might not be so easy.
—
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()