From 15df8e89214b447546f531cd508229716564336c Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 18 Mar 2005 05:19:59 +0000 Subject: [PATCH] (MENU_FONT_ASCENT) [HAVE_X_I18N]: Try to be more correct. --- lwlib/xlwmenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2