--- rxvt-unicode/src/rxvtimg.C 2012/06/06 20:20:23 1.27 +++ rxvt-unicode/src/rxvtimg.C 2012/06/06 20:55:36 1.29 @@ -436,17 +436,14 @@ Picture dst = XRenderCreatePicture (dpy, img->pm, new_format, 0, 0); int op = PictOpSrc; - printf ("fa %x,%x fb %x,%x\n", f->direct.alpha, f->direct.alpha_mask, new_format->direct.alpha, new_format->direct.alpha_mask);//D - - if (f->direct.alpha && !new_format->direct.alpha) + if (format->direct.alphaMask && !new_format->direct.alphaMask) { // does it have to be that complicated rgba c; bg.get (c); XRenderColor rc = { c.r, c.g, c.b, 0xffff }; - - XRenderFillRectangle (dpy, PictOpSrc, dst, &mask_c, 0, 0, w, h); + XRenderFillRectangle (dpy, PictOpSrc, dst, &rc, 0, 0, w, h); op = PictOpOver; }