forked from AuroraMiddleware/gtk
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)
This commit is contained in:
parent
8d279c6d77
commit
60416c88e2
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user