mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
cssimage: Make cross-fades cross-fade properly
We need to use OPERATOR_SOURCE to properly fade out the start image when the end image contains transparency.
This commit is contained in:
parent
2064987e31
commit
ea9081ae3b
@ -121,6 +121,7 @@ gtk_css_image_cross_fade_draw (GtkCssImage *image,
|
||||
cairo_get_target (cr),
|
||||
width, height);
|
||||
cairo_set_source_surface (cr, surface, 0, 0);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_paint_with_alpha (cr, cross_fade->progress);
|
||||
cairo_surface_destroy (surface);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user