[gtk+] css: Set meaningful fallback color



commit c30ee622fef079201fc340245d545780d939bc14
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Sep 6 06:16:40 2016 -0400

    css: Set meaningful fallback color
    
    This code was passing out-of-range values into
    gdk_cairo_set_source_rgb, which cannot really make
    anything better.

 gtk/gtkcssimagefallback.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssimagefallback.c b/gtk/gtkcssimagefallback.c
index 620dd94..ad9965a 100644
--- a/gtk/gtkcssimagefallback.c
+++ b/gtk/gtkcssimagefallback.c
@@ -74,7 +74,7 @@ gtk_css_image_fallback_draw (GtkCssImage *image,
       if (fallback->color)
         gdk_cairo_set_source_rgba (cr, _gtk_css_rgba_value_get_rgba (fallback->color));
       else
-        cairo_set_source_rgb (cr, 1, 0, 9);
+        cairo_set_source_rgb (cr, 1.0, 0.0, 0.0);
 
       cairo_rectangle (cr, 0, 0, width, height);
       cairo_fill (cr);


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