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 /w3mimg/x11 | |
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 'w3mimg/x11')
-rw-r--r-- | w3mimg/x11/x11_w3mimg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/w3mimg/x11/x11_w3mimg.c b/w3mimg/x11/x11_w3mimg.c index b2d928d..0be4cfe 100644 --- a/w3mimg/x11/x11_w3mimg.c +++ b/w3mimg/x11/x11_w3mimg.c @@ -1,4 +1,4 @@ -/* $Id: x11_w3mimg.c,v 1.12 2003/01/21 15:38:59 ukai Exp $ */ +/* $Id: x11_w3mimg.c,v 1.13 2003/03/24 15:46:00 ukai Exp $ */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -294,6 +294,10 @@ x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h) iw = gdk_pixbuf_animation_get_width(animation); ih = gdk_pixbuf_animation_get_height(animation); + if (self->max_anim > 0) { + n = (self->max_anim > n)? n : self->max_anim; + } + if (w < 1 || h < 1) { w = iw; h = ih; |