]> Pileus Git - ~andy/gtk/commitdiff
Fix a C99ism. (#169741, Morten Welinder)
authorMatthias Clasen <mclasen@redhat.com>
Wed, 9 Mar 2005 18:20:04 +0000 (18:20 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 9 Mar 2005 18:20:04 +0000 (18:20 +0000)
2005-03-09  Matthias Clasen  <mclasen@redhat.com>

* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Fix
a C99ism.  (#169741, Morten Welinder)

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-gif-animation.c

index 0fcba0727d108ff6d277b6758442c9fe7c0db8d4..883c7414f2297b3807d1c29f12411d787a2506ad 100644 (file)
@@ -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
index fe40df834a144016a513d186dd42836f3b7450ac..c99a0805e574842a8cfb2709094b85f9675eeabb 100644 (file)
@@ -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) {