From: Stefan Monnier Date: Fri, 18 Mar 2005 05:19:59 +0000 (+0000) Subject: (MENU_FONT_ASCENT) [HAVE_X_I18N]: Try to be more correct. X-Git-Tag: ttn-vms-21-2-B4~1722 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=15df8e89214b447546f531cd508229716564336c;p=emacs.git (MENU_FONT_ASCENT) [HAVE_X_I18N]: Try to be more correct. --- diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index b011786ef8d..b128e6cefb1 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -374,7 +374,8 @@ string_width (mw, s) #ifdef HAVE_X_I18N #define MENU_FONT_HEIGHT(mw) \ ((mw)->menu.font_extents->max_logical_extent.height) -#define MENU_FONT_ASCENT(mw) (MENU_FONT_HEIGHT(mw) * 9 / 10) +#define MENU_FONT_ASCENT(mw) \ + (- (mw)->menu.font_extents->max_logical_extent.y) #else #define MENU_FONT_HEIGHT(mw) \ ((mw)->menu.font->ascent + (mw)->menu.font->descent)