4116 |
the image. I believe it's looking better if we do |
the image. I believe it's looking better if we do |
4117 |
nothing here for mouse-face. */ |
nothing here for mouse-face. */ |
4118 |
if (s->hl == DRAW_CURSOR) |
if (s->hl == DRAW_CURSOR) |
4119 |
XDrawRectangle (s->display, s->window, s->gc, x, y, |
{ |
4120 |
s->img->width - 1, s->img->height - 1); |
int r = s->img->relief; |
4121 |
|
if (r < 0) r = -r; |
4122 |
|
XDrawRectangle (s->display, s->window, s->gc, x - r, y - r, |
4123 |
|
s->img->width + r*2 - 1, s->img->height + r*2 - 1); |
4124 |
|
} |
4125 |
} |
} |
4126 |
} |
} |
4127 |
else |
else |
4236 |
the image. I believe it's looking better if we do |
the image. I believe it's looking better if we do |
4237 |
nothing here for mouse-face. */ |
nothing here for mouse-face. */ |
4238 |
if (s->hl == DRAW_CURSOR) |
if (s->hl == DRAW_CURSOR) |
4239 |
XDrawRectangle (s->display, pixmap, s->gc, x, y, |
{ |
4240 |
s->img->width - 1, s->img->height - 1); |
int r = s->img->relief; |
4241 |
|
if (r < 0) r = -r; |
4242 |
|
XDrawRectangle (s->display, s->window, s->gc, x - r, y - r, |
4243 |
|
s->img->width + r*2 - 1, s->img->height + r*2 - 1); |
4244 |
|
} |
4245 |
} |
} |
4246 |
} |
} |
4247 |
else |
else |