diff options
| author | Joakim Verona | 2013-01-05 00:04:41 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-01-05 00:04:41 +0100 |
| commit | b18e01b65e651d3b626b4edcaaa2aa636fe25b69 (patch) | |
| tree | 2832e227a4c45d3a4d423f972df29fb7f8616b14 /src/xterm.c | |
| parent | 55b74b54b179f340bdb311070273f26da3fbd0c9 (diff) | |
| parent | 1bd71e9fe16541bc48868a00ff372018961380b0 (diff) | |
| download | emacs-b18e01b65e651d3b626b4edcaaa2aa636fe25b69.tar.gz emacs-b18e01b65e651d3b626b4edcaaa2aa636fe25b69.zip | |
auto upstream
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 7 |
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) | |||
| 2634 | static void | 2634 | static void |
| 2635 | x_draw_underwave (struct glyph_string *s) | 2635 | x_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; |