aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2000-10-16 04:20:36 +0000
committerKenichi Handa2000-10-16 04:20:36 +0000
commit58e4fce89515b10f4123ce3421a44c3daab23f87 (patch)
tree413e29726beed458161704e0ac987f42b104e45c /src
parentc412cb7bc696fbc4067acefac3d76ee8bd09d2bf (diff)
downloademacs-58e4fce89515b10f4123ce3421a44c3daab23f87.tar.gz
emacs-58e4fce89515b10f4123ce3421a44c3daab23f87.zip
(x_draw_box_rect): Fix the calculation of width and height for
XFillRectangle.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c
index ef707abfcfe..bb64fb1fc4f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3621,21 +3621,21 @@ x_draw_box_rect (s, left_x, top_y, right_x, bottom_y, width,
3621 3621
3622 /* Top. */ 3622 /* Top. */
3623 XFillRectangle (s->display, s->window, s->gc, 3623 XFillRectangle (s->display, s->window, s->gc,
3624 left_x, top_y, right_x - left_x, width); 3624 left_x, top_y, right_x - left_x + 1, width);
3625 3625
3626 /* Left. */ 3626 /* Left. */
3627 if (left_p) 3627 if (left_p)
3628 XFillRectangle (s->display, s->window, s->gc, 3628 XFillRectangle (s->display, s->window, s->gc,
3629 left_x, top_y, width, bottom_y - top_y); 3629 left_x, top_y, width, bottom_y - top_y + 1);
3630 3630
3631 /* Bottom. */ 3631 /* Bottom. */
3632 XFillRectangle (s->display, s->window, s->gc, 3632 XFillRectangle (s->display, s->window, s->gc,
3633 left_x, bottom_y - width, right_x - left_x, width); 3633 left_x, bottom_y - width + 1, right_x - left_x + 1, width);
3634 3634
3635 /* Right. */ 3635 /* Right. */
3636 if (right_p) 3636 if (right_p)
3637 XFillRectangle (s->display, s->window, s->gc, 3637 XFillRectangle (s->display, s->window, s->gc,
3638 right_x - width, top_y, width, bottom_y - top_y); 3638 right_x - width + 1, top_y, width, bottom_y - top_y + 1);
3639 3639
3640 XSetForeground (s->display, s->gc, xgcv.foreground); 3640 XSetForeground (s->display, s->gc, xgcv.foreground);
3641 XSetClipMask (s->display, s->gc, None); 3641 XSetClipMask (s->display, s->gc, None);