# HG changeset patch # User Stefan Monnier # Date 1111123199 0 # Node ID 2610d09357c85530aebca2443b06528b23ffd4e7 # Parent 11723b2eac2e5965ed1bf141146f6c50b1b5e566 (MENU_FONT_ASCENT) [HAVE_X_I18N]: Try to be more correct. diff -r 11723b2eac2e -r 2610d09357c8 lwlib/xlwmenu.c --- a/lwlib/xlwmenu.c Fri Mar 18 04:21:17 2005 +0000 +++ b/lwlib/xlwmenu.c Fri Mar 18 05:19:59 2005 +0000 @@ -374,7 +374,8 @@ #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)