primitives: Snap icon vertices to device pixels after final transform
Snap icon quad vertices in the shader after the final Qt Quick transform so they land on integer device pixels. Fixes subpixel blur and keeps icons sharp at fractional DPR.
Still testing, but looks good so far. It is same crispy result as when I switch Linear filtering to Nearest.
Before (scale 1.5)
After (scale 1.5)
Before (scale 1.5)
After (scale 1.5)
Before (scale 2.0)
After (scale 2.0, has no regression)
On 4k 2.5 scale also visible (top - after, bottom - before)
Edited by Volodymyr Zolotopupov




