Mercurial > emacs
diff src/xterm.c @ 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 | 1814c23c0524 |
children | a725c601ef70 |
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;