Mercurial > emacs
changeset 40265:44df655be97a
(x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
`IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background color
to use for image glyph reliefs.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 24 Oct 2001 18:02:59 +0000 |
parents | 04766dd416bb |
children | b3ad4265c0eb |
files | src/xterm.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Wed Oct 24 17:57:28 2001 +0000 +++ b/src/xterm.c Wed Oct 24 18:02:59 2001 +0000 @@ -3823,6 +3823,9 @@ if (s->face->use_box_color_for_shadows_p) color = s->face->box_color; + else if (s->first_glyph->type == IMAGE_GLYPH + && !IMAGE_BACKGROUND_TRANSPARENT (s->img, s->f, 0)) + color = IMAGE_BACKGROUND (s->img, s->f, 0); else { XGCValues xgcv;