aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorChong Yidong2005-11-16 13:38:25 +0000
committerChong Yidong2005-11-16 13:38:25 +0000
commit54188d8fb089059864e3fb69a8d61799cc19a00d (patch)
tree104237ff085ae47be27e0c63075c03588b75e0c8 /src/image.c
parente930091eb30562b0f7982de10d64de8fb4d9baec (diff)
downloademacs-54188d8fb089059864e3fb69a8d61799cc19a00d.tar.gz
emacs-54188d8fb089059864e3fb69a8d61799cc19a00d.zip
initialize XpmAttributes
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index aec66eb3cb8..1ba1cd197ff 100644
--- a/src/image.c
+++ b/src/image.c
@@ -3729,6 +3729,11 @@ x_create_bitmap_from_xpm_data (f, bits)
3729 3729
3730 bzero (&attrs, sizeof attrs); 3730 bzero (&attrs, sizeof attrs);
3731 3731
3732 attrs.visual = FRAME_X_VISUAL (f);
3733 attrs.colormap = FRAME_X_COLORMAP (f);
3734 attrs.valuemask |= XpmVisual;
3735 attrs.valuemask |= XpmColormap;
3736
3732 rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 3737 rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
3733 bits, &bitmap, &mask, &attrs); 3738 bits, &bitmap, &mask, &attrs);
3734 if (rc != XpmSuccess) 3739 if (rc != XpmSuccess)
@@ -3797,6 +3802,9 @@ xpm_load (f, img)
3797 attrs.valuemask |= XpmCloseness; 3802 attrs.valuemask |= XpmCloseness;
3798#endif /* not XpmAllocCloseColors */ 3803#endif /* not XpmAllocCloseColors */
3799#endif /* ALLOC_XPM_COLORS */ 3804#endif /* ALLOC_XPM_COLORS */
3805#ifdef ALLOC_XPM_COLORS
3806 xpm_init_color_cache (f, &attrs);
3807#endif
3800 3808
3801 /* If image specification contains symbolic color definitions, add 3809 /* If image specification contains symbolic color definitions, add
3802 these to `attrs'. */ 3810 these to `attrs'. */