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:
Benjamin Otte 2012-09-14 17:24:33 -04:00 committed by Cosimo Cecchi
parent 2064987e31
commit ea9081ae3b

View File

@ -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);