aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2001-10-24 18:05:05 +0000
committerMiles Bader2001-10-24 18:05:05 +0000
commite2a57b3428b71a77de165cd665069c9a02e6fd23 (patch)
treea5f8dc345176a650fb6f7e052322a39b03b25ef0 /src
parentf20a3b7a24410563b30a4e146ff74efe61a451c4 (diff)
downloademacs-e2a57b3428b71a77de165cd665069c9a02e6fd23.tar.gz
emacs-e2a57b3428b71a77de165cd665069c9a02e6fd23.zip
(x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
`IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background color to use for image glyph reliefs.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog29
-rw-r--r--src/xterm.c3
2 files changed, 32 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 463bcdc0364..7575bb25261 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,32 @@
12001-10-25 Miles Bader <miles@gnu.org>
2
3 * dispextern.h (struct image): Add `background',
4 `background_valid', and `background_transparent' fields.
5 (image_background, image_background_transparent): New declarations.
6 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
7 * xfns.c (image_background, image_background_transparent)
8 (four_corners_best): New functions.
9 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
10 (gs_format): Add `:background' entry.
11 (lookup_image): Set IMG's background color if specified.
12 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13 when appropriate.
14 (x_clear_image_1): Reset `background_valid' and
15 `background_transparent_valid' fields.
16 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17 calculating it here. Set IMG's background_transparent field.
18 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19 (enum png_keyword_index): Add PNG_BACKGROUND.
20 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
22 (enum gif_keyword_index): Add GIF_BACKGROUND.
23 (enum gs_keyword_index): Add GS_BACKGROUND.
24 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
25 Pre-calculate image background color where necessary.
26 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
27 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
28 color to use for image glyph reliefs.
29
12001-10-24 Gerd Moellmann <gerd@gnu.org> 302001-10-24 Gerd Moellmann <gerd@gnu.org>
2 31
3 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting 32 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
diff --git a/src/xterm.c b/src/xterm.c
index a757caaa668..11a8e07bc4a 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3823,6 +3823,9 @@ x_setup_relief_colors (s)
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;