aboutsummaryrefslogtreecommitdiffstats
path: root/w3mimg/x11
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2004-11-08 17:08:09 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2004-11-08 17:08:09 +0000
commit44c494c8f38b98d629261a12f67cc141176b468c (patch)
treebfa0984ff8d574fe46da226b16a444b04434b885 /w3mimg/x11
parent[w3m-dev 04117] Re: start attribute and value attribute on ordered lists (diff)
downloadw3m-44c494c8f38b98d629261a12f67cc141176b468c.tar.gz
w3m-44c494c8f38b98d629261a12f67cc141176b468c.zip
[w3m-dev 04128] Re: w3mimgdisplay
* acinclude.m4 (AC_W3M_IMAGE): check not yes * aclocal.m4, configure: regen * w3mimg/fb/fb_gdkpixbuf.c (fb_image_load): fb_image_fill in case GDK_PIXBUF_FRAME_DISPOSE * w3mimg/x11/x11_w3mimg.c (get_animation_size): return n (x11_load_image): fill in case GDK_PIXBUF_FRAME_DISPOSE
Diffstat (limited to '')
-rw-r--r--w3mimg/x11/x11_w3mimg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/w3mimg/x11/x11_w3mimg.c b/w3mimg/x11/x11_w3mimg.c
index ef9dcf1..e47dcdc 100644
--- a/w3mimg/x11/x11_w3mimg.c
+++ b/w3mimg/x11/x11_w3mimg.c
@@ -1,4 +1,4 @@
-/* $Id: x11_w3mimg.c,v 1.27 2004/08/05 18:22:16 ukai Exp $ */
+/* $Id: x11_w3mimg.c,v 1.28 2004/11/08 17:08:10 ukai Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -109,6 +109,7 @@ get_animation_size(GdkPixbufAnimation * animation, int *w, int *h, int *delay)
}
if (delay)
*delay = d;
+ return n;
}
#endif
#endif
@@ -522,6 +523,9 @@ x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h)
xi->imageGC, 0, 0, w, h, 0, 0);
break;
case GDK_PIXBUF_FRAME_DISPOSE:
+ XSetForeground(xi->display, xi->imageGC, xi->background_pixel);
+ XFillRectangle(xi->display, tmp_pixmap, xi->imageGC,
+ 0, 0, w, h);
break;
case GDK_PIXBUF_FRAME_REVERT:
XCopyArea(xi->display, ximg->pixmap[0], tmp_pixmap,