diff options
author | Benjamin Otte <otte@redhat.com> | 2012-09-14 17:24:33 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-09-14 17:33:02 -0400 |
commit | ea9081ae3b983aab964042460abd5b15c735c7a7 (patch) | |
tree | 1300961b6f3680e09cca39bd95bd93de2048350d /gtk/gtkcssimagecrossfade.c | |
parent | 2064987e319d2cf6b49b3939bcb8ae895dba3632 (diff) | |
download | gtk+-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.c | 1 |
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); |