D5487: Set xrdb XFT.DPI value as integer

Lukas Hetzenecker noreply at phabricator.kde.org
Tue Apr 18 02:11:35 UTC 2017


hetzenecker added inline comments.

INLINE COMMENTS

> scalingconfig.cpp:124
>  {
> -    return scaleFactor() * 96.0;
> +    return qRound(scaleFactor()) * 96.0;
>  }

I'd propse

  qRound(scaleFactor() * 96.0)

to get int values. If the scaleFactor is rounded, we only get multiplies of 96 as DPI. This means the icon sizes are wrong again

REPOSITORY
  R104 KScreen

REVISION DETAIL
  https://phabricator.kde.org/D5487

To: davidedmundson, #plasma
Cc: hetzenecker, plasma-devel, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170418/6ffd1c7b/attachment.html>


More information about the Plasma-devel mailing list