1 --- gtk+-2.6.4/gdk-pixbuf/io-gif-animation.c 2003-06-27 05:38:43.000000000 +0300
2 +++ gtk+-2.6.4/gdk-pixbuf/io-gif-animation.c 2005-04-06 16:19:35.595127080 +0300
6 GdkPixbufFrame *f = tmp->data;
8 + if (f->pixbuf == NULL) {
12 gint clipped_width = MIN (gif_anim->width - f->x_offset, gdk_pixbuf_get_width (f->pixbuf));
13 gint clipped_height = MIN (gif_anim->height - f->y_offset, gdk_pixbuf_get_height (f->pixbuf));
17 8, gif_anim->width, gif_anim->height);
19 + if (f->composited == NULL) {
23 /* alpha gets dumped if f->composited has no alpha */
25 gdk_pixbuf_fill (f->composited,
28 if (prev_frame->action == GDK_PIXBUF_FRAME_RETAIN) {
29 f->composited = gdk_pixbuf_copy (prev_frame->composited);
31 + if (f->composited == NULL) {
35 } else if (prev_frame->action == GDK_PIXBUF_FRAME_DISPOSE) {
36 f->composited = gdk_pixbuf_copy (prev_frame->composited);
38 + if (f->composited == NULL) {
42 if (prev_clipped_width > 0 && prev_clipped_height > 0) {
43 /* Clear area of previous frame to background */
54 gdk_pixbuf_fill (area,
55 (gif_anim->bg_red << 24) |
58 } else if (prev_frame->action == GDK_PIXBUF_FRAME_REVERT) {
59 f->composited = gdk_pixbuf_copy (prev_frame->composited);
60 - if (prev_clipped_width > 0 && prev_clipped_height > 0) {
62 + if (f->composited == NULL) {
66 + if (prev_frame->revert != NULL &&
67 + prev_clipped_width > 0 && prev_clipped_height > 0) {
68 /* Copy in the revert frame */
69 gdk_pixbuf_copy_area (prev_frame->revert,
81 f->revert = gdk_pixbuf_copy (area);
84 g_object_unref (area);
86 + if (f->revert == NULL) {
92 - if (clipped_width > 0 && clipped_height > 0) {
93 + if (clipped_width > 0 && clipped_height > 0 &&
94 + f->pixbuf != NULL && f->composited != NULL) {
95 /* Put current frame onto f->composited */
96 gdk_pixbuf_composite (f->pixbuf,
103 - g_assert (frame->composited != NULL);
104 - g_assert (gdk_pixbuf_get_width (frame->composited) == gif_anim->width);
105 - g_assert (gdk_pixbuf_get_height (frame->composited) == gif_anim->height);