aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 9e1cabe8c3c..3539d8123af 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4221,7 +4221,12 @@ x_draw_glyph_string (s)
4221 4221
4222 if (!XGetFontProperty (s->font, XA_UNDERLINE_THICKNESS, &h)) 4222 if (!XGetFontProperty (s->font, XA_UNDERLINE_THICKNESS, &h))
4223 h = 1; 4223 h = 1;
4224 if (!XGetFontProperty (s->font, XA_UNDERLINE_POSITION, &dy)) 4224 if (!XGetFontProperty (s->font, XA_UNDERLINE_POSITION, &dy)
4225 /* If the font specifies a negative underline position,
4226 we'll get a huge positive number, because dy is
4227 unsigned. This comparison is a workaround that just
4228 ignores the font's underline position in that case. XXX */
4229 || dy > s->height)
4225 dy = s->height - h; 4230 dy = s->height - h;
4226 4231
4227 if (s->face->underline_defaulted_p) 4232 if (s->face->underline_defaulted_p)