themingbackground: Use fill() instead of clip() + paint()

It's simpler code and I believe it's faster, too.
This commit is contained in:
Benjamin Otte 2014-10-08 05:23:11 +02:00
parent a3d68af950
commit 395db3afb6

View File

@ -65,14 +65,9 @@ _gtk_theming_background_paint_color (GtkThemingBackground *bg,
(_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BACKGROUND_CLIP),
n_values - 1));
cairo_save (cr);
_gtk_rounded_box_path (&bg->boxes[clip], cr);
cairo_clip (cr);
gdk_cairo_set_source_rgba (cr, bg_color);
cairo_paint (cr);
cairo_restore (cr);
cairo_fill (cr);
}
static void