diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-03-09 18:20:04 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-03-09 18:20:04 +0000 |
commit | 60416c88e21ee894a0288166bd546236ed75279b (patch) | |
tree | 4a7df3d778baa319ec20579c71f42fe2139ba8d9 /gdk-pixbuf | |
parent | 8d279c6d7726a4dbaa7f382f6727d19c9d1a547d (diff) | |
download | gtk+-60416c88e21ee894a0288166bd546236ed75279b.tar.gz |
Fix a C99ism. (#169741, Morten Welinder)
2005-03-09 Matthias Clasen <mclasen@redhat.com>
* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Fix
a C99ism. (#169741, Morten Welinder)
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/io-gif-animation.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 0fcba0727d..883c7414f2 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2005-03-09 Matthias Clasen <mclasen@redhat.com> + + * io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Fix + a C99ism. (#169741, Morten Welinder) + 2005-03-08 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf.c (gdk_pixbuf_class_init): Use canonical diff --git a/gdk-pixbuf/io-gif-animation.c b/gdk-pixbuf/io-gif-animation.c index fe40df834a..c99a0805e5 100644 --- a/gdk-pixbuf/io-gif-animation.c +++ b/gdk-pixbuf/io-gif-animation.c @@ -391,12 +391,13 @@ gdk_pixbuf_gif_anim_frame_composite (GdkPixbufGifAnim *gif_anim, while (tmp != NULL) { GdkPixbufFrame *f = tmp->data; + gint clipped_width, clipped_height; if (f->pixbuf == NULL) return; - gint clipped_width = MIN (gif_anim->width - f->x_offset, gdk_pixbuf_get_width (f->pixbuf)); - gint clipped_height = MIN (gif_anim->height - f->y_offset, gdk_pixbuf_get_height (f->pixbuf)); + clipped_width = MIN (gif_anim->width - f->x_offset, gdk_pixbuf_get_width (f->pixbuf)); + clipped_height = MIN (gif_anim->height - f->y_offset, gdk_pixbuf_get_height (f->pixbuf)); if (f->need_recomposite) { if (f->composited) { |