Gittyup icon indicating copy to clipboard operation
Gittyup copied to clipboard

1.5x scaling is rounded up to 2x on Windows

Open mappu opened this issue 2 years ago • 2 comments

Hi,

On Windows with 150% scaling, the app is rendered at 200% instead of 150%.

For Qt 5.15 please set QT_SCALE_FACTOR_ROUNDING_POLICY=Passthrough. It can be done in main.cpp via QApplication QGuiApplication::highDpiScaleFactorRoundingPolicy().

This will stop the 1.5 scale factor being rounded to 2

If this env var is set then Gittyup does look good at 150% rendering.

mappu avatar Mar 17 '23 02:03 mappu

Hi @mappu can you provide a MR for this?

Murmele avatar Mar 22 '23 15:03 Murmele

On Windows 11 with 150% scaling and 2560x1600 screen resolution the interface is too large. Because of that the app is inconvenient to use. In particular, the app window height is larger than the screen height. Most likely it's related to this issue. Is there a workaround to make the interface normal size? Tried "Change high DPI settings" in Compatibility settings of Windows app properties, but it didn't change anything.

artemgur avatar Oct 21 '25 10:10 artemgur