[seed] Fix type in canvas color parsing



commit ef154e7e67d4367be00157e7c530bdbdaeb7cf3d
Author: Robert Carr <racarr mireia (none)>
Date:   Tue Apr 14 03:11:52 2009 -0400

    Fix type in canvas color parsing
---
 modules/canvas/seed-canvas.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/canvas/seed-canvas.c b/modules/canvas/seed-canvas.c
index 672ff9f..5db0beb 100644
--- a/modules/canvas/seed-canvas.c
+++ b/modules/canvas/seed-canvas.c
@@ -217,8 +217,8 @@ seed_canvas_parse_color (SeedCanvasColor *color,
 	a = 0xff;
       
       color->r = r / 255.0;
-      color->g = r / 255.0;
-      color->b = r / 255.0;
+      color->g = g / 255.0;
+      color->b = b / 255.0;
       color->a = a / 255.0;
 
       return;
@@ -302,7 +302,6 @@ seed_canvas_update_fill_style (SeedContext ctx,
   GET_CR;
   
   gchar *fill_style = seed_value_to_string (ctx, value, e);
-  g_printf("Updating style to: %s \n", fill_style);
 
   if (!priv->styles)
     {
@@ -427,7 +426,6 @@ void
 seed_canvas_apply_fill_style (SeedCanvasStyle *style,
 				cairo_t * cr)
 {
-  g_printf("Applying fill style: %f %f %f %f \n", style->fill.r, style->fill.g, style->fill.b, style->fill.a * style->global_opacity);
   cairo_set_source_rgba(cr, 
 			style->fill.r,
 			style->fill.g,



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