From b8b37f87278897ddd867505b93b72883f99f2148 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 24 Mar 2003 15:45:55 +0000 Subject: [w3m-dev 03829] w3mimgdisplay -anim * w3mimgdisplay.c (maxAnim): added, default 100 (main): add --anim option, w_op->max_anim * w3mimg/w3mimg.h (w3mimg_op): add max_anim * w3mimg/fb/fb_gdkpixbuf.c (fb_image_load): add max_anim * w3mimg/fb/fb_img.h (fb_image_load): add max_anim args * w3mimg/fb/fb_imlib2.c (fb_image_load): add max_anim args * w3mimg/fb/fb_w3mimg.c (w3mfb_load_image): pass max_anim * w3mimg/x11/x11_w3mimg.c (x11_load_image): max_anim From: Hiroyuki Ito --- w3mimgdisplay.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'w3mimgdisplay.c') diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c index 4f48441..4534246 100644 --- a/w3mimgdisplay.c +++ b/w3mimgdisplay.c @@ -1,4 +1,4 @@ -/* $Id: w3mimgdisplay.c,v 1.12 2003/01/17 16:57:21 ukai Exp $ */ +/* $Id: w3mimgdisplay.c,v 1.13 2003/03/24 15:45:57 ukai Exp $ */ #include #include #include @@ -17,7 +17,7 @@ static char *defined_size = NULL; #define MAX_IMAGE 1000 static W3MImage *imageBuf = NULL; -static int maxImage = 0; +static int maxImage = 0, maxAnim = 100; static void GetOption(int argc, char **argv); static void DrawImage(char *buf, int redraw); @@ -57,6 +57,7 @@ main(int argc, char **argv) w_op->offset_x = offset_x; if (defined_y) w_op->offset_y = offset_y; + w_op->max_anim = maxAnim; if (defined_test) { printf("%d %d\n", w_op->width - w_op->offset_x, @@ -177,6 +178,11 @@ GetOption(int argc, char **argv) else if (!strcmp("-test", argv[i])) { defined_test = 1; } + else if (!strcmp("-anim", argv[i])) { + if (++i >= argc) + exit(1); + maxAnim = atoi(argv[i]); + } else if (!strcmp("-size", argv[i])) { if (++i >= argc) exit(1); -- cgit v1.2.3