Mercurial > emacs
diff src/ftxfont.c @ 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 | e038c1a8307c |
| children | 68dd71358159 |
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); }
