Mercurial > emacs
changeset 102862:edcf6efdc10a
(ftxfont_draw_backgrond): Fix args to XFillRectangle.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 06 Apr 2009 11:11:20 +0000 |
parents | 0ea82e792866 |
children | a6955c157af1 |
files | src/ftxfont.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ftxfont.c Mon Apr 06 11:08:56 2009 +0000 +++ b/src/ftxfont.c Mon Apr 06 11:11:20 2009 +0000 @@ -235,7 +235,7 @@ 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); }