aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/w32term.c b/src/w32term.c
index c5681438bfe..36ae4d7797f 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -358,7 +358,7 @@ w32_restore_glyph_string_clip (struct glyph_string *s)
358void 358void
359w32_draw_underwave (struct glyph_string *s, COLORREF color) 359w32_draw_underwave (struct glyph_string *s, COLORREF color)
360{ 360{
361 int wave_height = 2, wave_length = 3; 361 int wave_height = 3, wave_length = 2;
362 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax; 362 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax;
363 XRectangle wave_clip, string_clip, final_clip; 363 XRectangle wave_clip, string_clip, final_clip;
364 RECT w32_final_clip, w32_string_clip; 364 RECT w32_final_clip, w32_string_clip;
@@ -367,7 +367,7 @@ w32_draw_underwave (struct glyph_string *s, COLORREF color)
367 dx = wave_length; 367 dx = wave_length;
368 dy = wave_height - 1; 368 dy = wave_height - 1;
369 x0 = s->x; 369 x0 = s->x;
370 y0 = s->ybase + 1; 370 y0 = s->ybase - wave_height + 3;
371 width = s->width; 371 width = s->width;
372 xmax = x0 + width; 372 xmax = x0 + width;
373 373
@@ -2456,7 +2456,8 @@ x_draw_glyph_string (struct glyph_string *s)
2456 unsigned long thickness, position; 2456 unsigned long thickness, position;
2457 int y; 2457 int y;
2458 2458
2459 if (s->prev && s->prev->face->underline_p) 2459 if (s->prev && s->prev->face->underline_p
2460 && s->prev->face->underline_type == FACE_UNDER_LINE)
2460 { 2461 {
2461 /* We use the same underline style as the previous one. */ 2462 /* We use the same underline style as the previous one. */
2462 thickness = s->prev->underline_thickness; 2463 thickness = s->prev->underline_thickness;