Created attachment 145094 [details] Incorrect Scaling Install latest version (note this issue has been true for all versions over the last year) of Kdiff3 on Windows on a machine with a high resolution monitor. For example, I am using a ThinkPad X1 Yoga gen 6 with a screen resolution of 3840x2400. The scaling factor is 300%. When you open the app the menus are squished together and the toolbar is illegible. See screenshot. To fix requires telling windows to take over scaling itself. This is done by right clicking the app in Windows explorer, selecting the compatibility tab and changing the high DPI settings. See screenshot. Reopen Kdiff3. Now it renders correctly. See screenshot. Would be nice if this worked automatically versus having to fix this manually. Thanks!
Created attachment 145095 [details] Fix Scaling
Created attachment 145096 [details] Correct Scaling
The windows installer for 1.9.6 will set the compatibility flag "~ DPIUNAWARE" by default. That will enable scaling to work by default. Same as the setting shown.
I just tried the latest installe (kdiff3-1.10.0-windows-cl-64.exe although the reported version is 0.97.0), and still see the issue. The problem with having windows override the hdpi setting is that when Kdiff3 opens up it is really really big and then it gets resized correctly. The whole process takes a about 1 second, but its kinda distracting. Would it be possible to fix the underlying issue as opposed to working around it?
I now have a machine with a high resolution monitor so I can look into this further.
*** Bug 435711 has been marked as a duplicate of this bug. ***
Just submitted changes to master and 1.10 to turn Qt's scaling support by default. They also adjust default scaling behavior to match Qt6. Hopefully that resolves the issue.
Thanks Michael! Happy to test when there is a new build. Sorry to ask a dumb question, but which commit is it (I'm looking at https://invent.kde.org/sdk/kdiff3/-/commits/master)?
e713c038 is the commit. See https://binary-factory.kde.org/job/KDiff3_Nightly_win64/ for daily builds from master.
Created attachment 157225 [details] High DPI Settings
To follow up on this, the nightly seems to set Windows High DPI override settings. See screeenshot - the Override checkbox is enabled but also greyed out. So that is also the way I fixed previous builds. So this does work which is great! Are there plans for KDiff3 to natively support high dpi on windows without this override?
Try the next nightly we should be able to work with out the override now. The install was setting it as a provisional work around. KDiff3 now tells Qt to turn on HDPI support.
Feal free reopen if there are issues kdiff3 1.10.1 should now work without the override. Just going through some of the old bug reports.