From: Chong Yidong Date: Sat, 9 Oct 2010 03:30:31 +0000 (-0400) Subject: * xterm.c (x_draw_relief_rect): Clear corner pixels. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~46^2~110 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3625b3e2822aee88a47080bb356f6cb2a46bc478;p=emacs.git * xterm.c (x_draw_relief_rect): Clear corner pixels. --- diff --git a/src/ChangeLog b/src/ChangeLog index 151e0daa29d..3b3f20fb737 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-10-09 Chong Yidong + + * xterm.c (x_draw_relief_rect): Clear corner pixels. + 2010-10-08 Michael Albinus * keyboard.c: Revert last change; it was not intended to be diff --git a/src/xterm.c b/src/xterm.c index 8b28b1afa27..d9d908d4396 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1967,6 +1967,9 @@ x_draw_relief_rect (struct frame *f, 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 @@ x_draw_relief_rect (struct frame *f, /* 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); }