From 7d5328d6d8410149bdcd5f5cd1366ef9c9822b70 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 16 Aug 2004 16:56:39 +0000 Subject: [w3m-dev 04099] Re: w3m-img gtk2 * w3mimg/fb/fb_gdkpixbuf.c (fb_image_load): fix resize bug From: Hiroyuki Ito --- w3mimg/fb/fb_gdkpixbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'w3mimg/fb') 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); -- cgit v1.2.3