summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2005-03-18 05:19:59 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2005-03-18 05:19:59 +0000
commitdeec368b42cd42819edd09176fe7eddb5410aef3 (patch)
treee83fb1ee3cb56d214f83e3923dc313ca0f5d226a /lwlib
parentb551c337ca74d8417fd48762d2bc9409695c206d (diff)
downloademacs-deec368b42cd42819edd09176fe7eddb5410aef3.tar.gz
(MENU_FONT_ASCENT) [HAVE_X_I18N]: Try to be more correct.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/xlwmenu.c3
1 files changed, 2 insertions, 1 deletions
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)