From 88d3e7c67952d4f72960ca4001b56e95770abd86 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Thu, 17 Dec 2015 00:41:07 +0900 Subject: Wrap render_pixbuf_to_pixmap_32() in USE_GTK2 --- w3mimg/x11/x11_w3mimg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'w3mimg/x11') 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) -- cgit v1.2.3