aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Karlsson <jonas.karlsson@qt.io>2020-04-30 11:39:57 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-18 12:00:42 +0000
commit83e9a15a523e86718f99d47d5b3b516ab95d5ae2 (patch)
tree2aee8fc4f4614c811c9d906afd0755666fd54a9e
parent8c8a715a5ad0f3a7405f95c58f7e6586b7835161 (diff)
Fix gaussian blur with non-integer device pixel ratio
[ChangeLog][Gaussian Blur] Fixed an issue where the effect would be broken or incorrect if using a display with a non-integer device pixel ratio. Task-number: QTBUG-82830 Change-Id: I108426f5dfcddbc58dad4b3ba8e5b9c9dee9c8e0 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit d08c7f3aaa6d27e283ae8c2b89ce9ee790264049) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--src/effects/GaussianBlur.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/GaussianBlur.qml b/src/effects/GaussianBlur.qml
index 7619550..4af9714 100644
--- a/src/effects/GaussianBlur.qml
+++ b/src/effects/GaussianBlur.qml
@@ -262,7 +262,7 @@ Item {
/*! \internal */
property int _kernelSize: _kernelRadius * 2 + 1;
/*! \internal */
- property int _dpr: Screen.devicePixelRatio;
+ property real _dpr: Screen.devicePixelRatio;
/*! \internal */
property bool _alphaOnly: false;
/*! \internal */