]> cloud.milkyroute.net Git - dolphin.git/commitdiff
[KStandardItemListWidget] Round to icon size before applying scaling
authorKai Uwe Broulik <kde@privat.broulik.de>
Wed, 5 Sep 2018 10:24:10 +0000 (12:24 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Wed, 5 Sep 2018 10:24:10 +0000 (12:24 +0200)
Otherwise for 22px icons on high dpi we will request either the wrong icons or scale them needlessly.
Dolphin requests a pixmap of 22px, this is then multiplied by dpr resulting in 44 which isn't a valid icon size (only 32 or 48 are).
Moreover, we will also hit the path where it will scale the pixmap to a proper icon size resulting in blurry icons
(and a performance penalty).

Differential Revision: https://phabricator.kde.org/D15260


No differences found