UweKeim / ZetaResourceEditor

Free multilingual, parallel .NET resource file editing

Home Page:https://www.zeta-resource-editor.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken UI on high DPI screen in v2.3.50.0

Tennyleaz opened this issue · comments

After update to latest (v2.3.50.0), the UI is broken like the following screenshot, on DPI > 100%:

螢幕擷取畫面 2023-07-14 133634

Only working ok when I set DPI to 100%.

Thanks for reporting! Ironically, I've made the latest changes solely to support High DPI screens.

On my daily development machine I do have a High DPI screen myself, setting to 150% scale.

While I do not get the erroneous display as in your screenshot, I might suspect that the DevExpress UI components I'm using are doing some DirectX stuff in the background, thus generating the errors you see.

I'll try to see whether I can disable DirectX support altogether.

Another issue might be the non-western characters like Chinese or Korean that I did not test with.

A very fast reply!
Might not related, but this is my current environment:

  • Windows 10 22H2, x64
  • Dual screens, primary is 1440p 150%, secondary is 1080p 100%
  • Ryzen 7 5700G with Radeon Graphics, driver version 23.5.2

I've done a very quick fix, by simply not calling this line of code anymore:

WindowsFormsSettings.ForceDirectXPaint();

(See DX documentation)

I've just published a new setup with this change.

Could you please take a look and give it a try whether things improve/change/worsen by this?

Wow you fixed it! Thank you!
Just tested, cannot see any other obvious error.

Another question is that, font in ZRE is not very sharp on higher DPI. Is this a feature or design limitation?
螢幕擷取畫面 (172)
(Zoom this screenshot to see the blurry text)

This is how it looks on my 150% display:

image

It seems to be somewhat sharper than in your screenshot.

Honestly, I have no idea why this behaves so differently.


The application uses "Segoe UI" font.

On my Windows 11 system, I have these one installed:

image image

Maybe your system has fewer "versions" of Segoe UI installed thus picking another one than on my system?

Or maybe Windows 10 renders Zeta Resource Editor different than Windows 11?

Found out I checked "Override high DPI scaling behavior" box for ZetaResourceEditor.exe to "System (Enhanced)".
It was my fault 😅