1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 18:41:25 -08:00

(x_draw_image_foreground, w32_draw_image_foreground_1):

Enlarge cursor rectangle drawn around image with non-zero relief.
This commit is contained in:
Kim F. Storm 2002-05-08 21:30:57 +00:00
parent 84913e3651
commit c65eff23e2

View file

@ -3946,8 +3946,12 @@ x_draw_image_foreground (s)
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 @@ w32_draw_image_foreground_1 (s, pixmap)
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