diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-09-06 06:16:40 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-09-06 06:38:50 -0400 |
commit | c30ee622fef079201fc340245d545780d939bc14 (patch) | |
tree | c22450c05787cc217be252a918fb98d3df2e0672 /gtk/gtkcssimagefallback.c | |
parent | bd374b8070deb3352041f27ba880819a1b760b2f (diff) | |
download | gtk+-c30ee622fef079201fc340245d545780d939bc14.tar.gz |
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.
Diffstat (limited to 'gtk/gtkcssimagefallback.c')
-rw-r--r-- | gtk/gtkcssimagefallback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssimagefallback.c b/gtk/gtkcssimagefallback.c index 620dd94862..ad9965acb6 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); |