repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: b3b6ab4f6a6c0a198b85562114331eea7a3e6769:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit b3b6ab4f6a6c0a198b85562114331eea7a3e6769
Author: Marc Lehmann 
Date:   Mon Jan 9 07:19:18 2006 +0000

    *** empty log message ***

diff --git a/src/rxvtfont.C b/src/rxvtfont.C
index da846c3e0c15757729f25733a3344a1265191b5f..
index ..779340827f65ead498254d732b708c90ebf0fea6 100644
--- a/src/rxvtfont.C
+++ b/src/rxvtfont.C
@@ -1273,13 +1273,11 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
 {
   clear_rect (d, x, y, r->fwidth * len, r->fheight, bg);

-  int base = ascent; // should be fbase, but that is incorrect
-
   XGlyphInfo extents;
   XftGlyphSpec *enc = (XftGlyphSpec *) get_enc_buf (len * sizeof (XftGlyphSpec));
   XftGlyphSpec *ep = enc;

-  // skip trailing spaces
+  // cut trailing spaces
   while (len && text [len - 1] == ' ')
     len--;

@@ -1298,7 +1296,7 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,

           ep->glyph = gl;
           ep->x = x + (cwidth - extents.xOff >> 1);
-          ep->y = y + base;
+          ep->y = y + ascent;
           ep++;
         }

-----END OF PAGE-----