aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
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 d1934b1986e..e24fbd19f2b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2634,14 +2634,14 @@ x_draw_stretch_glyph_string (struct glyph_string *s)
2634static void 2634static void
2635x_draw_underwave (struct glyph_string *s) 2635x_draw_underwave (struct glyph_string *s)
2636{ 2636{
2637 int wave_height = 2, wave_length = 3; 2637 int wave_height = 3, wave_length = 2;
2638 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax; 2638 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax;
2639 XRectangle wave_clip, string_clip, final_clip; 2639 XRectangle wave_clip, string_clip, final_clip;
2640 2640
2641 dx = wave_length; 2641 dx = wave_length;
2642 dy = wave_height - 1; 2642 dy = wave_height - 1;
2643 x0 = s->x; 2643 x0 = s->x;
2644 y0 = s->ybase + 1; 2644 y0 = s->ybase - wave_height + 3;
2645 width = s->width; 2645 width = s->width;
2646 xmax = x0 + width; 2646 xmax = x0 + width;
2647 2647
@@ -2809,7 +2809,8 @@ x_draw_glyph_string (struct glyph_string *s)
2809 unsigned long thickness, position; 2809 unsigned long thickness, position;
2810 int y; 2810 int y;
2811 2811
2812 if (s->prev && s->prev->face->underline_p) 2812 if (s->prev && s->prev->face->underline_p
2813 && s->prev->face->underline_type == FACE_UNDER_LINE)
2813 { 2814 {
2814 /* We use the same underline style as the previous one. */ 2815 /* We use the same underline style as the previous one. */
2815 thickness = s->prev->underline_thickness; 2816 thickness = s->prev->underline_thickness;