summaryrefslogtreecommitdiff
path: root/src/w32term.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2009-06-22 02:01:56 +0000
committerChong Yidong <cyd@stupidchicken.com>2009-06-22 02:01:56 +0000
commit9a01ee3357b353a4bcfbd94a85fd25047aaf429e (patch)
treeedbd0ce70fefb73389aa539949060cfd538e2a19 /src/w32term.c
parent8a668709c216fe2deab4e22967c89a66381fd9de (diff)
downloademacs-9a01ee3357b353a4bcfbd94a85fd25047aaf429e.tar.gz
* 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)
if (s->face->underline_defaulted_p)
{
w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x,
- y, s->background_width, 1);
+ y, s->width, 1);
}
else
{
w32_fill_area (s->f, s->hdc, s->face->underline_color, s->x,
- y, s->background_width, 1);
+ y, s->width, 1);
}
}
/* Draw overline. */
@@ -2417,12 +2417,12 @@ x_draw_glyph_string (s)
if (s->face->overline_color_defaulted_p)
{
w32_fill_area (s->f, s->hdc, s->gc->foreground, s->x,
- s->y + dy, s->background_width, h);
+ s->y + dy, s->width, h);
}
else
{
w32_fill_area (s->f, s->hdc, s->face->overline_color, s->x,
- s->y + dy, s->background_width, h);
+ s->y + dy, s->width, h);
}
}