Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
40264:04766dd416bb | 40265:44df655be97a |
---|---|
3821 struct x_output *di = s->f->output_data.x; | 3821 struct x_output *di = s->f->output_data.x; |
3822 unsigned long color; | 3822 unsigned long color; |
3823 | 3823 |
3824 if (s->face->use_box_color_for_shadows_p) | 3824 if (s->face->use_box_color_for_shadows_p) |
3825 color = s->face->box_color; | 3825 color = s->face->box_color; |
3826 else if (s->first_glyph->type == IMAGE_GLYPH | |
3827 && !IMAGE_BACKGROUND_TRANSPARENT (s->img, s->f, 0)) | |
3828 color = IMAGE_BACKGROUND (s->img, s->f, 0); | |
3826 else | 3829 else |
3827 { | 3830 { |
3828 XGCValues xgcv; | 3831 XGCValues xgcv; |
3829 | 3832 |
3830 /* Get the background color of the face. */ | 3833 /* Get the background color of the face. */ |