# HG changeset patch # User Kenichi Handa # Date 971670036 0 # Node ID 545db232e60cc3306b78ac75437a520a3abe7353 # Parent 76e2488e56009b08ef79660a2651284af3ac1c0d (x_draw_box_rect): Fix the calculation of width and height for XFillRectangle. diff -r 76e2488e5600 -r 545db232e60c src/xterm.c --- a/src/xterm.c Mon Oct 16 04:13:28 2000 +0000 +++ b/src/xterm.c Mon Oct 16 04:20:36 2000 +0000 @@ -3621,21 +3621,21 @@ /* Top. */ XFillRectangle (s->display, s->window, s->gc, - left_x, top_y, right_x - left_x, width); + left_x, top_y, right_x - left_x + 1, width); /* Left. */ if (left_p) XFillRectangle (s->display, s->window, s->gc, - left_x, top_y, width, bottom_y - top_y); + left_x, top_y, width, bottom_y - top_y + 1); /* Bottom. */ XFillRectangle (s->display, s->window, s->gc, - left_x, bottom_y - width, right_x - left_x, width); + left_x, bottom_y - width + 1, right_x - left_x + 1, width); /* Right. */ if (right_p) XFillRectangle (s->display, s->window, s->gc, - right_x - width, top_y, width, bottom_y - top_y); + right_x - width + 1, top_y, width, bottom_y - top_y + 1); XSetForeground (s->display, s->gc, xgcv.foreground); XSetClipMask (s->display, s->gc, None);