Wassimulator / CactusViewer

A small single file image viewer written in C/C++.
BSD 2-Clause "Simplified" License
203 stars 15 forks source link

DPI scale issue on multiple monitors #11

Closed Mythique closed 1 year ago

Mythique commented 1 year ago

With two monitors the UI is blurry.

Current setup:

The window should still scale properly, but the UI shouldn't be blurry.

If I understand it correctly, the app needs to be "DPI aware".

Wassimulator commented 1 year ago

fixed :)

Mythique commented 12 months ago

Hello,

It fixed the blurriness, unfortunately the UI and window do not seem to be scaled properly.

If I drag the same program from a screen with and 100% scale to another 125%, the UI and text should get bigger respecting this scale, without it getting blurry of course.

Meanwhile CactusViewer is staying at a fixed scale when dragging the window, it does not seem to take the scale into account.

With that said, your fix is still an improvement from the previous version.

Mythique commented 11 months ago

I wanted to look a bit at this issue for my personal knowledge (unfortunately I don't know enough C++ and win32 to help improve this).

As far as I understand, Cactus is not using the new way to handle DPI scaling. Playing with the program from the Windows-classic-samples I notice it has a similar behaviour to Windows 8.1 (any windows 10 ways seems to be fine ?) : image

The issue with this are :