diff options
| author | Chong Yidong | 2009-06-22 02:01:56 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-06-22 02:01:56 +0000 |
| commit | 9a01ee3357b353a4bcfbd94a85fd25047aaf429e (patch) | |
| tree | edbd0ce70fefb73389aa539949060cfd538e2a19 /src/w32term.c | |
| parent | 8a668709c216fe2deab4e22967c89a66381fd9de (diff) | |
| download | emacs-9a01ee3357b353a4bcfbd94a85fd25047aaf429e.tar.gz emacs-9a01ee3357b353a4bcfbd94a85fd25047aaf429e.zip | |
* w32term.c (x_draw_glyph_string): Use the glyph string's width
rather than its background_width for drawing the overline and
underline (Bug#489).
* xterm.c (x_draw_glyph_string): Use the glyph string's width
rather than its background_width for drawing the overline and
underline (Bug#489).
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/w32term.c b/src/w32term.c index f96a60d777f..209e86edc8b 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -2401,12 +2401,12 @@ x_draw_glyph_string (s) | |||
| 2401 | if (s->face->underline_defaulted_p) | 2401 | if (s->face->underline_defaulted_p) |
| 2402 | { | 2402 | { |
| 2403 | w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x, | 2403 | w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x, |
| 2404 | y, s->background_width, 1); | 2404 | y, s->width, 1); |
| 2405 | } | 2405 | } |
| 2406 | else | 2406 | else |
| 2407 | { | 2407 | { |
| 2408 | w32_fill_area (s->f, s->hdc, s->face->underline_color, s->x, | 2408 | w32_fill_area (s->f, s->hdc, s->face->underline_color, s->x, |
| 2409 | y, s->background_width, 1); | 2409 | y, s->width, 1); |
| 2410 | } | 2410 | } |
| 2411 | } | 2411 | } |
| 2412 | /* Draw overline. */ | 2412 | /* Draw overline. */ |
| @@ -2417,12 +2417,12 @@ x_draw_glyph_string (s) | |||
| 2417 | if (s->face->overline_color_defaulted_p) | 2417 | if (s->face->overline_color_defaulted_p) |
| 2418 | { | 2418 | { |
| 2419 | w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x, | 2419 | w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x, |
| 2420 | s->y + dy, s->background_width, h); | 2420 | s->y + dy, s->width, h); |
| 2421 | } | 2421 | } |
| 2422 | else | 2422 | else |
| 2423 | { | 2423 | { |
| 2424 | w32_fill_area (s->f, s->hdc, s->face->overline_color, s->x, | 2424 | w32_fill_area (s->f, s->hdc, s->face->overline_color, s->x, |
| 2425 | s->y + dy, s->background_width, h); | 2425 | s->y + dy, s->width, h); |
| 2426 | } | 2426 | } |
| 2427 | } | 2427 | } |
| 2428 | 2428 | ||