From a71645ba037decbebfc98b8e5ac19cc062508af9 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 23 Jan 2008 14:18:19 +0000 Subject: [PATCH] improve transparency without render a bit again --- src/rxvtfont.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rxvtfont.C b/src/rxvtfont.C index 5abee98d..3ec4fe34 100644 --- a/src/rxvtfont.C +++ b/src/rxvtfont.C @@ -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); -- 2.34.1