--- rxvt-unicode/src/rxvtimg.h 2012/06/08 22:19:03 1.26 +++ rxvt-unicode/src/rxvtimg.h 2012/06/09 10:21:19 1.27 @@ -98,6 +98,14 @@ rxvt_img *rotate (int new_width, int new_height, int x, int y, double phi); rxvt_img *convert_format (XRenderPictFormat *format, const rxvt_color &bg); rxvt_img *blend (rxvt_img *img, double factor); + + // egregiuous helper category + rxvt_img *replace (rxvt_img *&p) + { + delete p; + p = this; + return this; + } }; #endif