mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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:
parent
bd374b8070
commit
c30ee622fe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user