# HG changeset patch # User Kim F. Storm # Date 1020893457 0 # Node ID fb8359237a78ff7332e764867f59cc4ee8c4e5f6 # Parent 8572b81e3c30c683656b2ed424e2d3cabc154de8 (x_draw_image_foreground, w32_draw_image_foreground_1): Enlarge cursor rectangle drawn around image with non-zero relief. diff -r 8572b81e3c30 -r fb8359237a78 src/w32term.c --- 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