]> code.delx.au - gnu-emacs/commitdiff
(ftxfont_draw_backgrond): Fix args to XFillRectangle.
authorKenichi Handa <handa@m17n.org>
Mon, 6 Apr 2009 11:11:36 +0000 (11:11 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 6 Apr 2009 11:11:36 +0000 (11:11 +0000)
src/ChangeLog
src/ftxfont.c

index 643483905d1d6862b90dbd07b87dd7bf19c6dc51..7d0f307e4a3e7e2471ddaf7b17f29a839ff520a3 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * ftfont.c (ftfont_open): Fix checking of the return value of
index dcad85ba7fd6dce55b8d6f2772b5e7afac3d46bd..2cf45bb27a09d6896a65bdb7d97b6cc677af323e 100644 (file)
@@ -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);
 }