[gegl] vignette: improve scaling behavior when squeezed



commit e5df94e358027657c8224ed14aad9f7d9fda94e8
Author: �yvind Kolås <pippin gimp org>
Date:   Mon Apr 25 21:33:58 2011 +0100

    vignette: improve scaling behavior when squeezed

 operations/common/vignette.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/vignette.c b/operations/common/vignette.c
index 6ef65f2..9d71f16 100644
--- a/operations/common/vignette.c
+++ b/operations/common/vignette.c
@@ -114,7 +114,10 @@ process (GeglOperation       *operation,
 
   scale *= aspect_to_scale (o->squeeze);
 
-  length = (bounds->width/2.0) / scale;
+  length = (bounds->width/2.0);
+
+  if (scale > 1.0)
+    length /= scale;
 
   gegl_color_get_rgba4f (o->color, color);
 



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