Commit 6e883c53 authored by Gunnar Sletta's avatar Gunnar Sletta
Browse files

Fix pixelgrid snapping of native text on retina displays.

Change 63e6c9ad

 introduced snapping to
the pixel grid in the vertex shader for native text, but this code was
broken on retina displays because it assumed integer only positions.
Fix it by including the retina scale factor into the rounding.

Task-number: QTBUG-38702
Change-Id: I84492b02d64f263c9fe030790e04cf79b0dc4e2f
Reviewed-by: default avatarEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
parent e3c6f397
Branches
Tags
No related merge requests found
Showing with 26 additions and 14 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment