Mercurial > emacs
changeset 40499:55065421f9e7
(x_draw_relief_rect): Correct bottom relief by 1 pixel.
(x_set_glyph_string_background_width): Set
extends_to_end_of_line_p if the row's fill_line_p is set and
drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 30 Oct 2001 14:59:57 +0000 |
parents | 720e335d3145 |
children | bbd0fb4be2ea |
files | src/xterm.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Tue Oct 30 13:59:45 2001 +0000 +++ b/src/xterm.c Tue Oct 30 14:59:57 2001 +0000 @@ -3907,7 +3907,7 @@ for (i = 0; i < width; ++i) XDrawLine (dpy, window, gc, left_x + i * left_p, bottom_y - i, - right_x + 2 - i * right_p, bottom_y - i); + right_x + 1 - i * right_p, bottom_y - i); /* Right. */ if (right_p) @@ -4004,7 +4004,7 @@ || (s->hl == DRAW_MOUSE_FACE && (s->next == NULL || s->next->hl != s->hl))); - + x_get_glyph_string_clip_rect (s, &clip_rect); if (s->face->box == FACE_SIMPLE_BOX) @@ -4826,7 +4826,9 @@ || s->face->background != default_face->background || s->face->stipple != default_face->stipple || s->row->mouse_face_p)) - || s->hl == DRAW_MOUSE_FACE)) + || s->hl == DRAW_MOUSE_FACE + || ((s->hl == DRAW_IMAGE_RAISED || s->hl == DRAW_IMAGE_SUNKEN) + && s->row->fill_line_p))) s->extends_to_end_of_line_p = 1; /* If S extends its face to the end of the line, set its