summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-06-27 02:38:44 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-06-27 02:38:44 +0000
commit8597f10089e2a7d44ec82cff5230aeef876e8fbc (patch)
tree85ee0f6b4705d7b19ef674ed1b135034852f0595 /gdk-pixbuf
parent74275373e0807b15641ed697a3b9dad0df64af02 (diff)
downloadgtk+-8597f10089e2a7d44ec82cff5230aeef876e8fbc.tar.gz
Make it compile with C89 compilers.
Fri Jun 27 03:56:59 2003 Soeren Sandmann <sandmann@daimi.au.dk> * io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Make it compile with C89 compilers. Thu Jun 26 21:41:16 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_cell_data): only set "is_expander" and "is_expanded" if the new value is different fromt he old one.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/ChangeLog5
-rw-r--r--gdk-pixbuf/io-gif-animation.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index 873ce86edc..9f6efbd3c4 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jun 27 03:56:59 2003 Soeren Sandmann <sandmann@daimi.au.dk>
+
+ * io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Make
+ it compile with C89 compilers.
+
2003-06-23 Matthias Clasen <maclas@gmx.de>
* io-gif.c (gif_get_frame_info): Remove the pointless refusal to load images with dubious
diff --git a/gdk-pixbuf/io-gif-animation.c b/gdk-pixbuf/io-gif-animation.c
index bf50a9363c..96c0139e5e 100644
--- a/gdk-pixbuf/io-gif-animation.c
+++ b/gdk-pixbuf/io-gif-animation.c
@@ -439,11 +439,13 @@ gdk_pixbuf_gif_anim_frame_composite (GdkPixbufGifAnim *gif_anim,
f->need_recomposite = FALSE;
} else {
GdkPixbufFrame *prev_frame;
+ gint prev_clipped_width;
+ gint prev_clipped_height;
prev_frame = tmp->prev->data;
- gint prev_clipped_width = MIN (gif_anim->width - prev_frame->x_offset, gdk_pixbuf_get_width (prev_frame->pixbuf));
- gint prev_clipped_height = MIN (gif_anim->height - prev_frame->y_offset, gdk_pixbuf_get_height (prev_frame->pixbuf));
+ prev_clipped_width = MIN (gif_anim->width - prev_frame->x_offset, gdk_pixbuf_get_width (prev_frame->pixbuf));
+ prev_clipped_height = MIN (gif_anim->height - prev_frame->y_offset, gdk_pixbuf_get_height (prev_frame->pixbuf));
/* Init f->composited with what we should have after the previous
* frame