[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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user