w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 512ce8f7edf045e504e2544884bca96bc1308ca6
parent c74b91d71f222314cdbb025d69619dea2b75f9c2
Author: ukai <ukai>
Date:   Tue,  1 Oct 2002 15:34:20 +0000

[w3m-dev 03332] Re: hang up when seeing web page that contains xbm file
* w3mimg/x11/x11_w3mimg.c (x11_load_image): transparent support
From: Yuji Abe <cbo46560@pop12.odn.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mw3mimg/x11/x11_w3mimg.c | 12++++++++----
2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-02 Yuji Abe <cbo46560@pop12.odn.ne.jp> + + * [w3m-dev 03332] Re: hang up when seeing web page that contains xbm file + * w3mimg/x11/x11_w3mimg.c (x11_load_image): transparent support + 2002-10-02 Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp> * [w3m-dev 03331] Re: hang up when seeing web page that contains xbm file diff --git a/w3mimg/x11/x11_w3mimg.c b/w3mimg/x11/x11_w3mimg.c @@ -194,13 +194,17 @@ x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h) if (w != iw || h != ih) { GdkPixbuf *newpixbuf; newpixbuf = gdk_pixbuf_scale_simple(pixbuf, w, h, GDK_INTERP_BILINEAR); - gdk_pixbuf_xlib_render_to_drawable(newpixbuf, (Drawable) img->pixmap, - xi->imageGC, 0, 0, 0, 0, w, h, + gdk_pixbuf_xlib_render_to_drawable_alpha(newpixbuf, + (Drawable) img->pixmap, + 0, 0, 0, 0, w, h, + GDK_PIXBUF_ALPHA_BILEVEL, 1, XLIB_RGB_DITHER_NORMAL, 0, 0); gdk_pixbuf_finalize(newpixbuf); } else { - gdk_pixbuf_xlib_render_to_drawable(pixbuf, (Drawable) img->pixmap, - xi->imageGC, 0, 0, 0, 0, w, h, + gdk_pixbuf_xlib_render_to_drawable_alpha(pixbuf, + (Drawable) img->pixmap, + 0, 0, 0, 0, w, h, + GDK_PIXBUF_ALPHA_BILEVEL, 1, XLIB_RGB_DITHER_NORMAL, 0, 0); } gdk_pixbuf_unref(pixbuf);