From: Kenichi Handa Date: Mon, 6 Apr 2009 11:11:36 +0000 (+0000) Subject: (ftxfont_draw_backgrond): Fix args to XFillRectangle. X-Git-Tag: emacs-pretest-23.0.93~217 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ab193662d55d811a0cf06dae6f0600d5df83e528;p=emacs.git (ftxfont_draw_backgrond): Fix args to XFillRectangle. --- diff --git a/src/ChangeLog b/src/ChangeLog index 643483905d1..7d0f307e4a3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2009-04-06 Kenichi Handa + + * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle. + + * xftfont.c (xftfont_open): Fix setting font->underline_thickness. + 2009-04-06 YAMAMOTO Mitsuharu * ftfont.c (ftfont_open): Fix checking of the return value of diff --git a/src/ftxfont.c b/src/ftxfont.c index dcad85ba7fd..2cf45bb27a0 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c @@ -235,7 +235,7 @@ ftxfont_draw_backgrond (f, font, gc, x, y, width) GCForeground | GCBackground, &xgcv); XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.background); XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), gc, - x, y - font->ascent, width, y + font->descent); + x, y - FONT_BASE (font), width, FONT_HEIGHT (font)); XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.foreground); }