changeset 7200:e2d745ffbf0a

Fix RT-36016: Dirty region (actually clipping) problems on blurs with large radii Reviewed by: kcr
author flar <James.Graham@oracle.com>
date Thu, 05 Jun 2014 16:22:09 -0700
parents d9e26c986af1
children 784974feb001
files modules/graphics/src/main/java/com/sun/scenario/effect/impl/state/BoxRenderState.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/scenario/effect/impl/state/BoxRenderState.java	Thu Jun 05 15:57:41 2014 -0700
+++ b/modules/graphics/src/main/java/com/sun/scenario/effect/impl/state/BoxRenderState.java	Thu Jun 05 16:22:09 2014 -0700
@@ -316,8 +316,8 @@
     @Override
     public Rectangle getInputClip(int i, Rectangle filterClip) {
         if (filterClip != null) {
-            int klenh = ((int) Math.ceil(Math.max(inputSizeH, 1.0))) | 1;
-            int klenv = ((int) Math.ceil(Math.max(inputSizeV, 1.0))) | 1;
+            int klenh = getInputKernelSize(0);
+            int klenv = getInputKernelSize(1);
             if ((klenh | klenv) > 1) {
                 filterClip = new Rectangle(filterClip);
                 // We actually want to grow them by (klen-1)/2, but since we