gegl r2809 - in trunk: . operations/external



Author: ok
Date: Thu Nov 27 22:01:35 2008
New Revision: 2809
URL: http://svn.gnome.org/viewvc/gegl?rev=2809&view=rev

Log:
* operations/external/path.c: (detect): only cause detects inside the
path if opacity is > 0.8


Modified:
   trunk/ChangeLog
   trunk/operations/external/path.c

Modified: trunk/operations/external/path.c
==============================================================================
--- trunk/operations/external/path.c	(original)
+++ trunk/operations/external/path.c	Thu Nov 27 22:01:35 2008
@@ -24,7 +24,7 @@
 #ifdef GEGL_CHANT_PROPERTIES
 
 
-gegl_chant_color  (fill, _("Fill Color"),  "black",
+gegl_chant_color  (fill, _("Fill Color"),  "rgba(0.0,0.0,0.0,0.6)",
                          _("Color of paint to use for filling, use 0 opacity to disable filling."))
 gegl_chant_color  (stroke,    _("Stroke Color"),      "rgba(0.0,0.0,0.0,0.0)",
                              _("Color of paint to use for stroking."))
@@ -46,7 +46,6 @@
 
 gegl_chant_path   (d,        _("Vector"),
                              _("A GeglVector representing the path of the stroke"))
-gegl_chant_pointer (pad,  "", "")
 
 #else
 
@@ -234,7 +233,7 @@
         {
           gfloat r,g,b,a;
           gegl_color_get_rgba (o->fill, &r,&g,&b,&a);
-          if (a>0.001)
+          if (a * o->fill_opacity>0.8)
             result = cairo_in_fill (cr, x, y);
         }
     }



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