From eeaceedf3d38c5d98a6ccbd6fa6686968c217b41 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 26 Mar 2003 15:34:12 +0000 Subject: [w3m-dev 03833] gif animation with no delay_time * w3mimg/fb/fb_w3mimg.c (w3mfb_show_image): skip delay<=0 * w3mimg/x11/x11_w3mimg.c (x11_image): add delay (x11_img_new): initialize delay (x11_load_image): initialize delay (x11_show_image): jump to last image if delay<=0 From: ABE Yuji --- w3mimg/fb/fb_w3mimg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'w3mimg/fb') diff --git a/w3mimg/fb/fb_w3mimg.c b/w3mimg/fb/fb_w3mimg.c index bac9dcc..d6c4cfa 100644 --- a/w3mimg/fb/fb_w3mimg.c +++ b/w3mimg/fb/fb_w3mimg.c @@ -1,4 +1,4 @@ -/* $Id: fb_w3mimg.c,v 1.9 2003/03/24 15:46:00 ukai Exp $ */ +/* $Id: fb_w3mimg.c,v 1.10 2003/03/26 15:34:19 ukai Exp $ */ #include #include #include @@ -92,6 +92,10 @@ w3mfb_show_image(w3mimg_op * self, W3MImage * img, int sx, int sy, frame = (FB_IMAGE **) img->pixmap; i = frame[0]->id; + while (i < frame[0]->num - 1 && frame[i]->delay <= 0) { + frame[0]->id += 1; + i = frame[0]->id; + } fb_image_draw(frame[i], x + self->offset_x, y + self->offset_y, sx, sy, (sw ? sw : img->width), (sh ? sh : img->height)); -- cgit v1.2.3