[gtk+/wip/css: 19/37] cssimage: Make cross-fades cross-fade properly



commit 29284ae4e65ad57e715e57cd450846b467f96423
Author: Benjamin Otte <otte redhat com>
Date:   Thu Sep 13 17:25:33 2012 +0200

    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.

 gtk/gtkcssimagecrossfade.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssimagecrossfade.c b/gtk/gtkcssimagecrossfade.c
index f7f8a63..424703a 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]