Mercurial > emacs
comparison src/xterm.c @ 32513:545db232e60c
(x_draw_box_rect): Fix the calculation of width and height for
XFillRectangle.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 16 Oct 2000 04:20:36 +0000 |
parents | be53a078f4e2 |
children | 00d2748a616a |
comparison
equal
deleted
inserted
replaced
32512:76e2488e5600 | 32513:545db232e60c |
---|---|
3619 XSetForeground (s->display, s->gc, s->face->box_color); | 3619 XSetForeground (s->display, s->gc, s->face->box_color); |
3620 XSetClipRectangles (s->display, s->gc, 0, 0, clip_rect, 1, Unsorted); | 3620 XSetClipRectangles (s->display, s->gc, 0, 0, clip_rect, 1, Unsorted); |
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); |
3642 } | 3642 } |
3643 | 3643 |