Mercurial > emacs
changeset 110871:bb1ecda9e4a9
* xterm.c (x_draw_relief_rect): Clear corner pixels.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Fri, 08 Oct 2010 23:30:31 -0400 |
parents | 7a9a2861c2c2 |
children | 4e0e3c2c342c |
files | src/ChangeLog src/xterm.c |
diffstat | 2 files changed, 14 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Fri Oct 08 23:23:38 2010 -0400 +++ b/src/ChangeLog Fri Oct 08 23:30:31 2010 -0400 @@ -1,3 +1,7 @@ +2010-10-09 Chong Yidong <cyd@stupidchicken.com> + + * xterm.c (x_draw_relief_rect): Clear corner pixels. + 2010-10-08 Michael Albinus <michael.albinus@gmx.de> * keyboard.c: Revert last change; it was not intended to be
--- a/src/xterm.c Fri Oct 08 23:23:38 2010 -0400 +++ b/src/xterm.c Fri Oct 08 23:30:31 2010 -0400 @@ -1967,6 +1967,9 @@ if (width == 1) XDrawLine (dpy, window, gc, left_x, top_y + 1, left_x, bottom_y); + XClearArea (dpy, window, left_x, top_y, 1, 1, False); + XClearArea (dpy, window, left_x, bottom_y, 1, 1, False); + for (i = (width > 1 ? 1 : 0); i < width; ++i) XDrawLine (dpy, window, gc, left_x + i, top_y + i, left_x + i, bottom_y - i + 1); @@ -2006,9 +2009,13 @@ /* Right. */ if (right_p) - for (i = 0; i < width; ++i) - XDrawLine (dpy, window, gc, - right_x - i, top_y + i + 1, right_x - i, bottom_y - i); + { + XClearArea (dpy, window, right_x, top_y, 1, 1, False); + XClearArea (dpy, window, right_x, bottom_y, 1, 1, False); + for (i = 0; i < width; ++i) + XDrawLine (dpy, window, gc, + right_x - i, top_y + i + 1, right_x - i, bottom_y - i); + } XSetClipMask (dpy, gc, None); }