diff options
| author | Kenichi Handa | 2011-12-15 11:12:08 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2011-12-15 11:12:08 +0900 |
| commit | 100d5755ed82e6c47833a3559fb0a154381d5afd (patch) | |
| tree | 4a6727ded9519827de5bf86929d85a162c911636 /src | |
| parent | fac916bfd7f839a654c839dca609d0d75a77846a (diff) | |
| download | emacs-100d5755ed82e6c47833a3559fb0a154381d5afd.tar.gz emacs-100d5755ed82e6c47833a3559fb0a154381d5afd.zip | |
xftfont.c (xftfont_draw): Use the font metrics of s->font to fill background (Bug#8992).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xftfont.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 68547e191f2..dacce28a87d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * xftfont.c (xftfont_draw): Use the font metrics of s->font to | ||
| 4 | fill background (Bug#8992). | ||
| 5 | |||
| 1 | 2011-12-13 Martin Rudalics <rudalics@gmx.at> | 6 | 2011-12-13 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * window.c (Vwindow_combination_resize) | 8 | * window.c (Vwindow_combination_resize) |
diff --git a/src/xftfont.c b/src/xftfont.c index c27a4fcf91a..8cb4c494854 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -654,7 +654,7 @@ xftfont_draw (struct glyph_string *s, int from, int to, int x, int y, int with_b | |||
| 654 | 654 | ||
| 655 | if (with_background) | 655 | if (with_background) |
| 656 | XftDrawRect (xft_draw, &bg, | 656 | XftDrawRect (xft_draw, &bg, |
| 657 | x, y - face->font->ascent, s->width, face->font->height); | 657 | x, y - s->font->ascent, s->width, s->font->height); |
| 658 | code = alloca (sizeof (FT_UInt) * len); | 658 | code = alloca (sizeof (FT_UInt) * len); |
| 659 | for (i = 0; i < len; i++) | 659 | for (i = 0; i < len; i++) |
| 660 | code[i] = ((XCHAR2B_BYTE1 (s->char2b + from + i) << 8) | 660 | code[i] = ((XCHAR2B_BYTE1 (s->char2b + from + i) << 8) |