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/w32term.c | |
| parent | 55b74b54b179f340bdb311070273f26da3fbd0c9 (diff) | |
| parent | 1bd71e9fe16541bc48868a00ff372018961380b0 (diff) | |
| download | emacs-b18e01b65e651d3b626b4edcaaa2aa636fe25b69.tar.gz emacs-b18e01b65e651d3b626b4edcaaa2aa636fe25b69.zip | |
auto upstream
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 7 |
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) | |||
| 358 | void | 358 | void |
| 359 | w32_draw_underwave (struct glyph_string *s, COLORREF color) | 359 | w32_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; |