<table><tr><td style="">mart created this revision.<br />mart added a reviewer: Plasma.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />mart requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19686">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>when the flag AA_UseHighDpiPixmaps is set, the pixmap is already scaled,<br />
no need to scale it twice.<br />
the code calling virtual_hook in QIcon calls it with the following<br />
ScaledPixmapArgument:<br />
scalePixmapArg = { size * devicePixelRatio, mode, state, devicePixelRatio, QPixmap() }<br />
The requested pixmap size is already scaled, counting devicePixelRatio<br />
again will result in a pixmap scaled two times.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Icons in apps with fractional scaling look a lot better</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R302 KIconThemes</div></div></div><br /><div><strong>BRANCH</strong><div><div>phab/iconRendering</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19686">https://phabricator.kde.org/D19686</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kiconengine.cpp</div></div></div><br /><div><strong>To: </strong>mart, Plasma<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>