*** empty log message ***
authorroot <root>
Mon, 9 Jan 2006 07:35:07 +0000 (07:35 +0000)
committerroot <root>
Mon, 9 Jan 2006 07:35:07 +0000 (07:35 +0000)
src/rxvtfont.C

index c1a3584baf05fbdfb8080dac2c7ad4ff24f45857..1fe7f744ae05b604ea12ce712ec2f3437e4e1a9a 100644 (file)
@@ -1271,12 +1271,12 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
                      const text_t *text, int len,
                      int fg, int bg)
 {
+  clear_rect (d, x, y, r->fwidth * len, r->fheight, bg);
+
   XGlyphInfo extents;
   XftGlyphSpec *enc = (XftGlyphSpec *)get_enc_buf (len * sizeof (XftGlyphSpec));
   XftGlyphSpec *ep = enc;
 
-  clear_rect (d, x, y, r->fwidth * len, r->fheight, bg);
-
   // cut trailing spaces
   while (len && text [len - 1] == ' ')
     len--;