aboutsummaryrefslogtreecommitdiffstats
path: root/w3mimg/x11/x11_w3mimg.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2015-12-16 15:41:07 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-12-16 15:44:38 +0000
commit88d3e7c67952d4f72960ca4001b56e95770abd86 (patch)
treef207393cf4ef5f1c32fb7d096140cb694292705f /w3mimg/x11/x11_w3mimg.c
parentw3mimgdisplay supports 32 bit depth screen. (e.g. gnome-terminal) (diff)
downloadw3m-88d3e7c67952d4f72960ca4001b56e95770abd86.tar.gz
w3m-88d3e7c67952d4f72960ca4001b56e95770abd86.zip
Wrap render_pixbuf_to_pixmap_32() in USE_GTK2
Diffstat (limited to 'w3mimg/x11/x11_w3mimg.c')
-rw-r--r--w3mimg/x11/x11_w3mimg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/w3mimg/x11/x11_w3mimg.c b/w3mimg/x11/x11_w3mimg.c
index 0dc5610..ac21f6b 100644
--- a/w3mimg/x11/x11_w3mimg.c
+++ b/w3mimg/x11/x11_w3mimg.c
@@ -330,8 +330,8 @@ resize_image(GdkPixbuf * pixbuf, int width, int height)
return NULL;
return resized_pixbuf;
}
-#endif
+#if defined(USE_GTK2)
static void
render_pixbuf_to_pixmap_32(Display *display, GC gc, Pixmap pixmap, GdkPixbuf * pixbuf)
{
@@ -364,6 +364,8 @@ render_pixbuf_to_pixmap_32(Display *display, GC gc, Pixmap pixmap, GdkPixbuf *
XPutImage(display, pixmap, gc, image, 0, 0, 0, 0, width, height);
XDestroyImage(image);
}
+#endif
+#endif
static int
x11_load_image(w3mimg_op * self, W3MImage * img, char *fname, int w, int h)