summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagecrossfade.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-09-14 17:24:33 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-09-14 17:33:02 -0400
commitea9081ae3b983aab964042460abd5b15c735c7a7 (patch)
tree1300961b6f3680e09cca39bd95bd93de2048350d /gtk/gtkcssimagecrossfade.c
parent2064987e319d2cf6b49b3939bcb8ae895dba3632 (diff)
downloadgtk+-ea9081ae3b983aab964042460abd5b15c735c7a7.tar.gz
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.
Diffstat (limited to 'gtk/gtkcssimagecrossfade.c')
-rw-r--r--gtk/gtkcssimagecrossfade.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcssimagecrossfade.c b/gtk/gtkcssimagecrossfade.c
index f7f8a6312a..424703af85 100644
--- a/gtk/gtkcssimagecrossfade.c
+++ b/gtk/gtkcssimagecrossfade.c
@@ -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);