improve transparency without render a bit again
authorroot <root>
Wed, 23 Jan 2008 14:18:19 +0000 (14:18 +0000)
committerroot <root>
Wed, 23 Jan 2008 14:18:19 +0000 (14:18 +0000)
src/rxvtfont.C

index 5abee98..3ec4fe3 100644 (file)
@@ -1396,7 +1396,7 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
             }
           else
 #endif
-            XftDrawRect (d2, &term->pix_colors[bg == Color_transparent ? Color_bg : bg].c, 0, 0, w, h);
+            clear_rect (d, x, y, w, h, bg);
 
           XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc);
           XCopyArea (disp, d2, d, gc, 0, 0, w, h, x, y);