mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 23:50:16 +00:00
themingbackground: Use fill() instead of clip() + paint()
It's simpler code and I believe it's faster, too.
This commit is contained in:
parent
a3d68af950
commit
395db3afb6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user