summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-gif-animation.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-02-19 23:02:03 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-02-19 23:02:03 +0000
commitdb0dfee6de9b55907d7708da9958b783b031d2b9 (patch)
tree6936dd30ceafa0e3529db3d14c9375859832c93e /gdk-pixbuf/io-gif-animation.c
parent16ae019e454d2a7450c2346f43d6cbac7b3f17ab (diff)
downloadgdk-pixbuf-db0dfee6de9b55907d7708da9958b783b031d2b9.tar.gz
Always clear the initial frame and "disposed" areas with transparent
2003-02-20 Matthias Clasen <maclas@gmx.de> * 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)
Diffstat (limited to 'gdk-pixbuf/io-gif-animation.c')
-rw-r--r--gdk-pixbuf/io-gif-animation.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdk-pixbuf/io-gif-animation.c b/gdk-pixbuf/io-gif-animation.c
index 2b4fe90ae..ede356dea 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);