Commit ab193662 authored by Kenichi Handa's avatar Kenichi Handa

(ftxfont_draw_backgrond): Fix args to XFillRectangle.

parent bc981e4e
2009-04-06 Kenichi Handa <handa@m17n.org>
* ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
* xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* ftfont.c (ftfont_open): Fix checking of the return value of * ftfont.c (ftfont_open): Fix checking of the return value of
......
...@@ -235,7 +235,7 @@ ftxfont_draw_backgrond (f, font, gc, x, y, width) ...@@ -235,7 +235,7 @@ ftxfont_draw_backgrond (f, font, gc, x, y, width)
GCForeground | GCBackground, &xgcv); GCForeground | GCBackground, &xgcv);
XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.background); XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.background);
XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), gc, 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); XSetForeground (FRAME_X_DISPLAY (f), gc, xgcv.foreground);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment