# HG changeset patch # User Miles Bader # Date 1003946579 0 # Node ID 44df655be97a7278865eaa75e4f082a8ff43f8ab # Parent 04766dd416bb56c44cc70fae7f60260e3810f58a (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background color to use for image glyph reliefs. diff -r 04766dd416bb -r 44df655be97a src/xterm.c --- 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;