wxHexEditor icon indicating copy to clipboard operation
wxHexEditor copied to clipboard

Per-monitor DPI

Open Wouterdek opened this issue 4 years ago • 3 comments

At least on Windows, this application is not properly DPI aware when using 2 monitors with different DPI settings. As the Microsoft documentation explains, applications should rescale based on the DPI of the monitor the window is located on. It seems wxWidgets supports this, as I was able to find a resolved issue and a pull request related to this, but wxHexEditor does not.

The result is that the application is either very blurry or pixelated. Click on the image below for an example.

image

Luckily, as you can see in this small commit from a similar wxWidgets application, this may be easy to resolve.

Wouterdek avatar Apr 18 '20 14:04 Wouterdek

Wow. Thank you for detailed bug report. I don't understand that why wxWidgets solves this automatically and need programmer interaction. I will (try to) make required changes at next bug hunting session. I don't know how to verify it under KVM/qemu. I never try to add second monitor nor if it supported. But might switch to Win10 temporarily for this bug (yup I got 2.nd monitor). Thanks!

EUA avatar Apr 19 '20 00:04 EUA

Hi, I read that recent wxWidgets 3.1.3 release support wxMSW HiDPI settings.

  • Add support for per-monitor DPI under new enough OS versions (Maarten Bent)

So not need to fight with patches. Will try to make changes soon.

EUA avatar May 12 '20 03:05 EUA

Anyone could comment on it, if it's fixed with compiled with latest wxWidgets library?

EUA avatar Oct 20 '23 00:10 EUA