--- rxvt-unicode/src/rxvtfont.C 2007/08/20 20:13:35 1.112 +++ rxvt-unicode/src/rxvtfont.C 2007/08/28 17:32:47 1.115 @@ -1348,33 +1348,28 @@ gcv.ts_x_origin = -x; gcv.ts_y_origin = -y; - #if 0 - GC gc2 = XCreateGC (disp, d2, - GCTile | GCTileStipXOrigin | GCTileStipYOrigin | GCFillStyle, - &gcv); - #endif XChangeGC (disp, gc, GCTile | GCTileStipXOrigin | GCTileStipYOrigin | GCFillStyle, &gcv); - XFillRectangle (disp, d2, gc/*gc2*/, 0, 0, w, h); + XFillRectangle (disp, d2, gc, 0, 0, w, h); gcv.fill_style = FillSolid; XChangeGC (disp, gc, GCFillStyle, &gcv); - /* XFreeGC (disp, gc2); */ - } + if (bg >= 0) { Picture solid_color_pict = XftDrawSrcPicture (d2, &term->pix_colors[bg].c); XRenderComposite (disp, PictOpOver, solid_color_pict, None, dst, 0, 0, 0, 0, 0, 0, w, h); } + back_rendered = true; } } #endif - if(bg >= 0 && !back_rendered) + if (bg >= 0 && !back_rendered) XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h); XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc);