aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorChong Yidong2009-06-22 02:01:56 +0000
committerChong Yidong2009-06-22 02:01:56 +0000
commit9a01ee3357b353a4bcfbd94a85fd25047aaf429e (patch)
treeedbd0ce70fefb73389aa539949060cfd538e2a19 /src/w32term.c
parent8a668709c216fe2deab4e22967c89a66381fd9de (diff)
downloademacs-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.c8
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