Skip to content

Added support for screen scaling

Luca Carlon requested to merge lcarlon/kruler:highdpi into master

When screen scaling is enabled, the values reported on the ruler are referred to the logical space, not the physical space. This commit compensates for the Qt scaling by remapping the values when needed.

Attached is the difference between before and after (screen is 3840x2160 with scaling set to 2):

Screenshot_20210924_192422

Merge request reports