[gegl] box-blur.c: Fix down-right shifting when used with non integer values



commit 12babaccba270060ac2cd36acf3011aa6f8c14c2
Author: Téo Mazars <teo mazars ensimag fr>
Date:   Tue May 14 23:22:48 2013 +0200

    box-blur.c: Fix down-right shifting when used with non integer values

 operations/common/box-blur.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/box-blur.c b/operations/common/box-blur.c
index 1553897..ca5563a 100644
--- a/operations/common/box-blur.c
+++ b/operations/common/box-blur.c
@@ -315,8 +315,8 @@ process (GeglOperation       *operation,
                            babl_format ("RaGaBaA float"));
 
   /* doing second pass in separate gegl op may be significantly faster */
-  hor_blur (input, &rect, temp, &tmprect, o->radius);
-  ver_blur (temp, &rect, output, result, o->radius);
+  hor_blur (input, &rect, temp, &tmprect, ceil (o->radius));
+  ver_blur (temp, &rect, output, result, ceil (o->radius));
 
   g_object_unref (temp);
   return  TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]