diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-03-24 15:45:55 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-03-24 15:45:55 +0000 |
commit | b8b37f87278897ddd867505b93b72883f99f2148 (patch) | |
tree | 79db04ceadecaedad015291e49dc8ce784b79ff2 /w3mimgdisplay.c | |
parent | [w3m-dev 03828] possible typo in nextA (diff) | |
download | w3m-b8b37f87278897ddd867505b93b72883f99f2148.tar.gz w3m-b8b37f87278897ddd867505b93b72883f99f2148.zip |
[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 <hito@crl.go.jp>
Diffstat (limited to 'w3mimgdisplay.c')
-rw-r--r-- | w3mimgdisplay.c | 10 |
1 files changed, 8 insertions, 2 deletions
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 <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -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); |