diff options
| author | Gerd Moellmann | 2001-10-30 15:00:38 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-30 15:00:38 +0000 |
| commit | 327f42ee807888a049eda51daa025020e388577e (patch) | |
| tree | 41822bdeaba1e454ea571628cd0d16ef330d85d5 /src | |
| parent | 99cb6b2f6958a169e22a6d06970c914e15cb918b (diff) | |
| download | emacs-327f42ee807888a049eda51daa025020e388577e.tar.gz emacs-327f42ee807888a049eda51daa025020e388577e.zip | |
(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}.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xterm.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fa377529266..c79704d45c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2001-10-30 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-10-30 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel. | ||
| 4 | (x_set_glyph_string_background_width): Set | ||
| 5 | extends_to_end_of_line_p if the row's fill_line_p is set and | ||
| 6 | drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}. | ||
| 7 | |||
| 3 | * xdisp.c (clear_garbaged_frames): Call Fredraw_frame. | 8 | * xdisp.c (clear_garbaged_frames): Call Fredraw_frame. |
| 4 | 9 | ||
| 5 | 2001-10-29 Stefan Monnier <monnier@cs.yale.edu> | 10 | 2001-10-29 Stefan Monnier <monnier@cs.yale.edu> |
diff --git a/src/xterm.c b/src/xterm.c index bd85e68c6e4..60b46bc3d12 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3907,7 +3907,7 @@ x_draw_relief_rect (f, left_x, top_y, right_x, bottom_y, width, | |||
| 3907 | for (i = 0; i < width; ++i) | 3907 | for (i = 0; i < width; ++i) |
| 3908 | XDrawLine (dpy, window, gc, | 3908 | XDrawLine (dpy, window, gc, |
| 3909 | left_x + i * left_p, bottom_y - i, | 3909 | left_x + i * left_p, bottom_y - i, |
| 3910 | right_x + 2 - i * right_p, bottom_y - i); | 3910 | right_x + 1 - i * right_p, bottom_y - i); |
| 3911 | 3911 | ||
| 3912 | /* Right. */ | 3912 | /* Right. */ |
| 3913 | if (right_p) | 3913 | if (right_p) |
| @@ -4004,7 +4004,7 @@ x_draw_glyph_string_box (s) | |||
| 4004 | || (s->hl == DRAW_MOUSE_FACE | 4004 | || (s->hl == DRAW_MOUSE_FACE |
| 4005 | && (s->next == NULL | 4005 | && (s->next == NULL |
| 4006 | || s->next->hl != s->hl))); | 4006 | || s->next->hl != s->hl))); |
| 4007 | 4007 | ||
| 4008 | x_get_glyph_string_clip_rect (s, &clip_rect); | 4008 | x_get_glyph_string_clip_rect (s, &clip_rect); |
| 4009 | 4009 | ||
| 4010 | if (s->face->box == FACE_SIMPLE_BOX) | 4010 | if (s->face->box == FACE_SIMPLE_BOX) |
| @@ -4826,7 +4826,9 @@ x_set_glyph_string_background_width (s, start, last_x) | |||
| 4826 | || s->face->background != default_face->background | 4826 | || s->face->background != default_face->background |
| 4827 | || s->face->stipple != default_face->stipple | 4827 | || s->face->stipple != default_face->stipple |
| 4828 | || s->row->mouse_face_p)) | 4828 | || s->row->mouse_face_p)) |
| 4829 | || s->hl == DRAW_MOUSE_FACE)) | 4829 | || s->hl == DRAW_MOUSE_FACE |
| 4830 | || ((s->hl == DRAW_IMAGE_RAISED || s->hl == DRAW_IMAGE_SUNKEN) | ||
| 4831 | && s->row->fill_line_p))) | ||
| 4830 | s->extends_to_end_of_line_p = 1; | 4832 | s->extends_to_end_of_line_p = 1; |
| 4831 | 4833 | ||
| 4832 | /* If S extends its face to the end of the line, set its | 4834 | /* If S extends its face to the end of the line, set its |