summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Karlsson <jonas.karlsson@qt.io>2020-04-30 11:39:57 +0200
committerJonas Karlsson <jonas.karlsson@qt.io>2020-05-14 09:39:06 +0200
commitd08c7f3aaa6d27e283ae8c2b89ce9ee790264049 (patch)
tree5880c56b242e6e4a12d598b268f8bd53eeecb1f9
parent11acfb9274e2c6f61bf7f38252b0de53295c3807 (diff)
downloadqtgraphicaleffects-d08c7f3aaa6d27e283ae8c2b89ce9ee790264049.tar.gz
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 Pick-to: 5.15 Change-Id: I108426f5dfcddbc58dad4b3ba8e5b9c9dee9c8e0 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@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 */