comparison src/redisplay-x.c @ 247:e70b3a057e12 r20-5b22

Import from CVS: tag r20-5b22
author cvs
date Mon, 13 Aug 2007 10:18:21 +0200
parents 262b8bb4a523
children 677f6a0ee643
comparison
equal deleted inserted replaced
246:cf2a77a48c1c 247:e70b3a057e12
972 unsigned long upos, uthick; 972 unsigned long upos, uthick;
973 XFontStruct *xfont; 973 XFontStruct *xfont;
974 974
975 xfont = FONT_INSTANCE_X_FONT (XFONT_INSTANCE (font)); 975 xfont = FONT_INSTANCE_X_FONT (XFONT_INSTANCE (font));
976 if (!XGetFontProperty (xfont, XA_UNDERLINE_POSITION, &upos)) 976 if (!XGetFontProperty (xfont, XA_UNDERLINE_POSITION, &upos))
977 upos = 0; 977 upos = dl->descent / 2;
978 if (!XGetFontProperty (xfont, XA_UNDERLINE_THICKNESS, &uthick)) 978 if (!XGetFontProperty (xfont, XA_UNDERLINE_THICKNESS, &uthick))
979 uthick = 1; 979 uthick = 1;
980 980
981 if (dl->ypos + upos < dl->ypos + dl->descent - dl->clip) 981 if (dl->ypos + upos < dl->ypos + dl->descent - dl->clip)
982 { 982 {