]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_relief_rect): Correct bottom relief by 1 pixel.
authorGerd Moellmann <gerd@gnu.org>
Tue, 30 Oct 2001 15:01:32 +0000 (15:01 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 30 Oct 2001 15:01:32 +0000 (15:01 +0000)
(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}.

src/ChangeLog
src/xterm.c

index a80a131e675bd801b61280fef0a0d11ef802707b..ee2c0b84253e955c994c2e4fa922ed03854a935e 100644 (file)
@@ -1,5 +1,10 @@
 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
 
+       * xterm.c (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}.
+
        * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
 
 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
index 31241eac7f5cfa91c532d36d6721713c47966e1a..8823c8ff58fbafb4319c41627ce056d1ef6c6777 100644 (file)
@@ -3933,7 +3933,7 @@ x_draw_relief_rect (f, left_x, top_y, right_x, bottom_y, width,
   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)
@@ -4030,7 +4030,7 @@ x_draw_glyph_string_box (s)
             || (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)
@@ -4854,7 +4854,9 @@ x_set_glyph_string_background_width (s, start, last_x)
               || 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