From 6c430da4db18b8d2811b3e10c936a8b0ba55e076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Niemel=C3=A4?= Date: Wed, 18 Jan 2012 12:47:52 +0200 Subject: DropShadow and Glow changed to use sourceproxy when draing original pixels --- src/effects/DropShadow.qml | 12 ++++++++---- src/effects/Glow.qml | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/effects/DropShadow.qml b/src/effects/DropShadow.qml index 5f2a43e..60b503c 100644 --- a/src/effects/DropShadow.qml +++ b/src/effects/DropShadow.qml @@ -66,7 +66,7 @@ Item { id: gaussianGlow GaussianGlow { anchors.fill: parent - source: rootItem.source + source: sourceProxy.output radius: rootItem.radius maximumRadius: rootItem.samples * 0.5 color: rootItem.color @@ -80,7 +80,7 @@ Item { id: fastGlow FastGlow { anchors.fill: parent - source: rootItem.source + source: sourceProxy.output blur: Math.pow(rootItem.radius / 64.0, 0.4) color: rootItem.color cached: rootItem.cached @@ -89,8 +89,12 @@ Item { } } - ShaderEffectSource { + SourceProxy { + id: sourceProxy + input: rootItem.source + } + ShaderEffect { anchors.fill: parent - sourceItem: rootItem.source + property variant source: sourceProxy.output } } diff --git a/src/effects/Glow.qml b/src/effects/Glow.qml index 8c65142..c93aa30 100644 --- a/src/effects/Glow.qml +++ b/src/effects/Glow.qml @@ -61,7 +61,7 @@ Item { id: gaussianGlow GaussianGlow { anchors.fill: parent - source: rootItem.source + source: sourceProxy.output radius: rootItem.radius maximumRadius: rootItem.samples * 0.5 color: rootItem.color @@ -75,7 +75,7 @@ Item { id: fastGlow FastGlow { anchors.fill: parent - source: rootItem.source + source: sourceProxy.output blur: Math.pow(rootItem.radius / 64.0, 0.4) color: rootItem.color cached: rootItem.cached @@ -84,8 +84,12 @@ Item { } } - ShaderEffectSource { + SourceProxy { + id: sourceProxy + input: rootItem.source + } + ShaderEffect { anchors.fill: parent - sourceItem: rootItem.source + property variant source: sourceProxy.output } } -- cgit v1.2.1