xftfont.c (xftfont_draw): Use the font metrics of s->font to fill background (Bug#8992).

This commit is contained in:
Kenichi Handa 2011-12-15 11:12:08 +09:00
parent fac916bfd7
commit 100d5755ed
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* xftfont.c (xftfont_draw): Use the font metrics of s->font to
fill background (Bug#8992).
2011-12-13 Martin Rudalics <rudalics@gmx.at>
* window.c (Vwindow_combination_resize)

View file

@ -654,7 +654,7 @@ xftfont_draw (struct glyph_string *s, int from, int to, int x, int y, int with_b
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)