gegl r2852 - in trunk: . gegl/property-types



Author: ok
Date: Fri Jan  2 15:29:27 2009
New Revision: 2852
URL: http://svn.gnome.org/viewvc/gegl?rev=2852&view=rev

Log:
* gegl/property-types/gegl-path.c: (gegl_path_fill),
(gegl_path_stamp): use newer GeglColor API.


Modified:
   trunk/ChangeLog
   trunk/gegl/property-types/gegl-path.c

Modified: trunk/gegl/property-types/gegl-path.c
==============================================================================
--- trunk/gegl/property-types/gegl-path.c	(original)
+++ trunk/gegl/property-types/gegl-path.c	Fri Jan  2 15:29:27 2009
@@ -1854,10 +1854,11 @@
 
     /* Fill the spans */
 {
-    const gfloat *colc = gegl_color_float4 (color);
-    gfloat col[4] = {colc[0],colc[1],colc[2],colc[3]};
+    gfloat col[4];
     gfloat factor = 1.0/(horsub * versub);
 
+    gegl_color_get_rgba4f (color, col);
+
     col[0] *= factor;
     col[1] *= factor;
     col[2] *= factor;
@@ -1924,7 +1925,7 @@
                              GeglColor  *color,
                              gdouble     opacity)
 {
-  const gfloat *col = gegl_color_float4 (color);
+  gfloat col[4];
   static StampStatic s = {FALSE,}; /* XXX: 
                                       we will ultimately leak the last valid
                                       cached brush. */
@@ -1936,6 +1937,8 @@
 
   GeglRectangle temp;
 
+  gegl_color_get_rgba4f (color, col);
+
   /* bail out if we wouldn't leave a mark on the buffer */
   if (!gegl_rectangle_intersect (&temp, &roi, clip_rect))
     {



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