Fix wrong font metrics for mouse highlight (backport 2011-12-15T02:12:08Z!handa@m17n...
[bpt/emacs.git] / src / xftfont.c
index 935a731..aa31fd9 100644 (file)
@@ -689,7 +689,7 @@ xftfont_draw (s, from, to, x, y, with_background)
 
   if (with_background)
     XftDrawRect (xft_draw, &bg,
-                x, y - face->font->ascent, s->width, face->font->height);
+                x, y - s->font->ascent, s->width, s->font->height);
   code = alloca (sizeof (FT_UInt) * len);
   for (i = 0; i < len; i++)
     code[i] = ((XCHAR2B_BYTE1 (s->char2b + from + i) << 8)