From db0dfee6de9b55907d7708da9958b783b031d2b9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 19 Feb 2003 23:02:03 +0000 Subject: [PATCH] Always clear the initial frame and "disposed" areas with transparent 2003-02-20 Matthias Clasen * io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Always clear the initial frame and "disposed" areas with transparent pixels, no matter whether the frame has transparency or not. (#55502) --- gdk-pixbuf/ChangeLog | 7 +++++++ gdk-pixbuf/io-gif-animation.c | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 838be6f796..b56504a4a7 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,10 @@ +2003-02-20 Matthias Clasen + + * io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): + Always clear the initial frame and "disposed" areas with + transparent pixels, no matter whether the frame has transparency + or not. (#55502) + 2003-02-18 Matthias Clasen * io-tga.c (pixbuf_flip_row): diff --git a/gdk-pixbuf/io-gif-animation.c b/gdk-pixbuf/io-gif-animation.c index 2b4fe90aef..ede356dea2 100644 --- a/gdk-pixbuf/io-gif-animation.c +++ b/gdk-pixbuf/io-gif-animation.c @@ -404,8 +404,7 @@ gdk_pixbuf_gif_anim_frame_composite (GdkPixbufGifAnim *gif_anim, gdk_pixbuf_fill (f->composited, (gif_anim->bg_red << 24) | (gif_anim->bg_green << 16) | - (gif_anim->bg_blue << 8) | - (f->bg_transparent ? 0 : 255)); + (gif_anim->bg_blue << 8)); gdk_pixbuf_composite (f->pixbuf, f->composited, @@ -459,8 +458,7 @@ gdk_pixbuf_gif_anim_frame_composite (GdkPixbufGifAnim *gif_anim, gdk_pixbuf_fill (area, (gif_anim->bg_red << 24) | (gif_anim->bg_green << 16) | - (gif_anim->bg_blue << 8) | - prev_frame->bg_transparent ? 0 : 255); + (gif_anim->bg_blue << 8)); g_object_unref (area);