diff options
| author | Fumitoshi UKAI <ukai@debian.or.jp> | 2004-08-16 16:56:39 +0000 | 
|---|---|---|
| committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2004-08-16 16:56:39 +0000 | 
| commit | 7d5328d6d8410149bdcd5f5cd1366ef9c9822b70 (patch) | |
| tree | 65d7f28759b247d140040bab6fceec243cdd55d8 /w3mimg | |
| parent | [w3m-dev 04097] Re: w3m-img gtk2 (diff) | |
| download | w3m-7d5328d6d8410149bdcd5f5cd1366ef9c9822b70.tar.gz w3m-7d5328d6d8410149bdcd5f5cd1366ef9c9822b70.zip | |
[w3m-dev 04099] Re: w3m-img gtk2
* w3mimg/fb/fb_gdkpixbuf.c (fb_image_load): fix resize bug
From: Hiroyuki Ito <ZXB01226@nifty.com>
Diffstat (limited to 'w3mimg')
| -rw-r--r-- | w3mimg/fb/fb_gdkpixbuf.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/w3mimg/fb/fb_gdkpixbuf.c b/w3mimg/fb/fb_gdkpixbuf.c index 3995e61..c779d90 100644 --- a/w3mimg/fb/fb_gdkpixbuf.c +++ b/w3mimg/fb/fb_gdkpixbuf.c @@ -1,4 +1,4 @@ -/* $Id: fb_gdkpixbuf.c,v 1.18 2004/08/05 18:22:15 ukai Exp $ */ +/* $Id: fb_gdkpixbuf.c,v 1.19 2004/08/16 16:56:40 ukai Exp $ */  /**************************************************************************                  fb_gdkpixbuf.c 0.3 Copyright (C) 2002, hito   **************************************************************************/ @@ -183,11 +183,11 @@ fb_image_load(char *filename, int w, int h, int max_anim)  	GdkPixbuf *org_pixbuf, *pixbuf;  	org_pixbuf = gdk_pixbuf_animation_iter_get_pixbuf(iter); -	pixbuf = resize_image(org_pixbuf, fw, fh); +	pixbuf = resize_image(org_pixbuf, w, h);  	fb_frame[j]->delay = gdk_pixbuf_animation_iter_get_delay_time(iter);  	g_time_val_add(&time, fb_frame[j]->delay * 1000); -	draw(fb_frame[j], 0, 0, fw, fh, pixbuf); +	draw(fb_frame[j], 0, 0, w, h, pixbuf);  	if (org_pixbuf != pixbuf)  	    g_object_unref(G_OBJECT(pixbuf));  	gdk_pixbuf_animation_iter_advance(iter, &time); | 
