summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-01-04 11:22:37 -0800
committerGlenn Morris <rgm@gnu.org>2013-01-04 11:22:37 -0800
commit0f668a4db4a33f98f84613513af3efea521b4847 (patch)
treeab85f709ca11c2390dddfc1756656293d6762e55 /src/xterm.c
parent4a1b123d1517bcad22f936df9c39b61fbc3e5359 (diff)
parent92d596112248baecbe6789d450d8e8ea405de19b (diff)
downloademacs-0f668a4db4a33f98f84613513af3efea521b4847.tar.gz
Merge from emacs-24; up to 2012-12-06T20:16:38Z!monnier@iro.umontreal.ca
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index e9c4709d999..f63f10566f6 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2631,14 +2631,14 @@ x_draw_stretch_glyph_string (struct glyph_string *s)
static void
x_draw_underwave (struct glyph_string *s)
{
- int wave_height = 2, wave_length = 3;
+ int wave_height = 3, wave_length = 2;
int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax;
XRectangle wave_clip, string_clip, final_clip;
dx = wave_length;
dy = wave_height - 1;
x0 = s->x;
- y0 = s->ybase + 1;
+ y0 = s->ybase - wave_height + 3;
width = s->width;
xmax = x0 + width;
@@ -2800,7 +2800,8 @@ x_draw_glyph_string (struct glyph_string *s)
unsigned long thickness, position;
int y;
- if (s->prev && s->prev->face->underline_p)
+ if (s->prev && s->prev->face->underline_p
+ && s->prev->face->underline_type == FACE_UNDER_LINE)
{
/* We use the same underline style as the previous one. */
thickness = s->prev->underline_thickness;