diff options
author | Kaj Grönholm <[email protected]> | 2020-11-11 10:08:45 +0200 |
---|---|---|
committer | Kaj Grönholm <[email protected]> | 2020-11-12 13:42:58 +0200 |
commit | 88119bd35aa578ca8d2eafb6d2921ac1b7bb2a56 (patch) | |
tree | c016b6f5be6023eb797fa02697c41cdb809b8d6d /src/particles/qquickimageparticle_p.h | |
parent | 54d4f8f526f9c9a1af702b14925e1d34ee8b2134 (diff) |
Take pixel ratio into account with point particles
Particles using DrawTriangles are taking pixel ratio into account,
while particles using DrawPoints used raw pixel sizes. Change points
to also scale based on dpr. This way particles with different
backends and performance levels remain the same size.
Task-number: QTBUG-88240
Change-Id: I3988a0ad8e741626a56a41b08aed0500e5be0c62
Reviewed-by: Tomi Korpipää <[email protected]>
Reviewed-by: Laszlo Agocs <[email protected]>
Diffstat (limited to 'src/particles/qquickimageparticle_p.h')
-rw-r--r-- | src/particles/qquickimageparticle_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/particles/qquickimageparticle_p.h b/src/particles/qquickimageparticle_p.h index 0df098a05e..320534ca0b 100644 --- a/src/particles/qquickimageparticle_p.h +++ b/src/particles/qquickimageparticle_p.h @@ -482,6 +482,7 @@ private: int m_startedImageLoading; QRhi *m_rhi; bool m_apiChecked; + qreal m_dpr; }; QT_END_NAMESPACE |