/* Feel free to comment out the next line if it gives you trouble */ #warning ((((((((( USING HACKED X11/IMLIB COMPATIBALITY HEADER FILE ))))))))) #include #define Image ImlibImage #define ImColor ImlibColor #define ImlibInit Imlib_init /* #define ImlibLoadImage(a,b,c) Imlib_load_image((a),(b)) */ #define ImlibFreePixmap Imlib_free_pixmap #define ImlibRender Imlib_render #define ImlibCopyImageToPixmap Imlib_copy_image #define ImlibDestroyImage Imlib_destroy_image #define ImlibCopyMaskToPixmap Imlib_copy_mask #define ImlibDestroyPixmaps(imd,im,a,b) Imlib_free_pixmap((imd),(im)->pixmap) #define ImlibBestColorMatch Imlib_best_color_match inline Image *ImlibLoadImage(ImlibData *imd,char *file, ImColor *icl) { Image *im; im = Imlib_load_image(imd,file); if ((im)&&(icl)) Imlib_set_image_shape(imd,im,icl); return im; }