Mercurial > emacs
changeset 45196:fb8359237a78
(x_draw_image_foreground, w32_draw_image_foreground_1):
Enlarge cursor rectangle drawn around image with non-zero relief.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Wed, 08 May 2002 21:30:57 +0000 |
parents | 8572b81e3c30 |
children | 0b6da8b7d7ac |
files | src/w32term.c |
diffstat | 1 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32term.c Wed May 08 19:19:19 2002 +0000 +++ b/src/w32term.c Wed May 08 21:30:57 2002 +0000 @@ -3946,8 +3946,12 @@ the image. I believe it's looking better if we do nothing here for mouse-face. */ if (s->hl == DRAW_CURSOR) - w32_draw_rectangle (s->hdc, s->gc, x, y, s->img->width - 1, - s->img->height - 1); + { + int r = s->img->relief; + if (r < 0) r = -r; + w32_draw_rectangle (s->hdc, s->gc, x - r, y - r , + s->img->width + r*2 - 1, s->img->height + r*2 - 1); + } w32_set_clip_rectangle (s->hdc, NULL); } } @@ -4087,8 +4091,12 @@ the image. I believe it's looking better if we do nothing here for mouse-face. */ if (s->hl == DRAW_CURSOR) - w32_draw_rectangle (hdc, s->gc, x, y, s->img->width - 1, - s->img->height - 1); + { + int r = s->img->relief; + if (r < 0) r = -r; + w32_draw_rectangle (s->hdc, s->gc, x - r, y - r , + s->img->width + r*2 - 1, s->img->height + r*2 - 1); + } } } else