From 3625b3e2822aee88a47080bb356f6cb2a46bc478 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 8 Oct 2010 23:30:31 -0400 Subject: [PATCH] * xterm.c (x_draw_relief_rect): Clear corner pixels. --- src/ChangeLog | 4 ++++ src/xterm.c | 13 ++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) 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); } -- 2.39.5