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.
This commit is contained in:
Matthias Clasen 2016-09-06 06:16:40 -04:00
parent bd374b8070
commit c30ee622fe

View File

@ -74,7 +74,7 @@ gtk_css_image_fallback_draw (GtkCssImage *image,
if (fallback->color) if (fallback->color)
gdk_cairo_set_source_rgba (cr, _gtk_css_rgba_value_get_rgba (fallback->color)); gdk_cairo_set_source_rgba (cr, _gtk_css_rgba_value_get_rgba (fallback->color));
else 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_rectangle (cr, 0, 0, width, height);
cairo_fill (cr); cairo_fill (cr);