0

Set DpiAwareness to permonitorv2; fallback to older implementations at runtime

Noah Sherwin 1 year ago updated by Thomas Singer 1 year ago 1

See https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process

The current DpiAware/DpiAwareness level (which is probably 'unaware') leads to the GUI being bitmap scaled (and blurred) when the DPI changes e.g. when moved from a display with 125% display scale to one with 100% display scale.


Scaled to 125% display.

Image 824


Scaled to 125% display then moved to a display with 100% display scale.

Image 823

GUI

The used GUI library (SWT) and hence SmartGit only supports one scaling for all monitors. SmartGit only supports images at 100% and 200% scaling.