changeset 60700:2610d09357c8

(MENU_FONT_ASCENT) [HAVE_X_I18N]: Try to be more correct.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 18 Mar 2005 05:19:59 +0000
parents 11723b2eac2e
children cd94feb048c7
files lwlib/xlwmenu.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)