Commit 3625b3e2 authored by Chong Yidong's avatar Chong Yidong
Browse files

* xterm.c (x_draw_relief_rect): Clear corner pixels.

parent 587faadd
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
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment