--- rxvt-unicode/src/rxvtimg.h 2012/06/09 11:13:14 1.28 +++ rxvt-unicode/src/rxvtimg.h 2012/06/10 10:29:26 1.30 @@ -1,7 +1,7 @@ #ifndef IMG_H #define IMG_H -#if HAVE_BG_PIXMAP && BG_IMAGE_FROM_FILE && ENABLE_TRANSPARENCY && HAVE_PIXBUF +#if HAVE_BG_PIXMAP #define HAVE_IMG 1 #endif @@ -13,7 +13,6 @@ class rxvt_img { - void alloc (); void destroy (); Picture src_picture (); @@ -39,9 +38,12 @@ rxvt_img (rxvt_screen *screen, XRenderPictFormat *format, int x, int y, int width, int height, int repeat = RepeatNormal); rxvt_img (const rxvt_img &img); + void alloc (); +# if HAVE_PIXBUF static rxvt_img *new_from_pixbuf (rxvt_screen *s, GdkPixbuf *pb); // from pixbuf static rxvt_img *new_from_file (rxvt_screen *s, const char *filename); // via pixbuf +# endif static rxvt_img *new_from_root (rxvt_screen *s); // get root pixmap ~rxvt_img ();