# HG changeset patch # User Kenichi Handa # Date 1239016280 0 # Node ID edcf6efdc10a67cff7af3a5f1211d28bf4905a0d # Parent 0ea82e79286607cf19e0ffe6eec33e5ef3fb5061 (ftxfont_draw_backgrond): Fix args to XFillRectangle. diff -r 0ea82e792866 -r edcf6efdc10a src/ftxfont.c --- 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); }