Mercurial > emacs
diff src/image.c @ 66924:53960d1c1f2f
initialize XpmAttributes
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 16 Nov 2005 13:38:25 +0000 |
parents | a9d1837b115c |
children | 9d0a2cc054be |
line wrap: on
line diff
--- a/src/image.c Wed Nov 16 11:26:34 2005 +0000 +++ b/src/image.c Wed Nov 16 13:38:25 2005 +0000 @@ -3729,6 +3729,11 @@ bzero (&attrs, sizeof attrs); + attrs.visual = FRAME_X_VISUAL (f); + attrs.colormap = FRAME_X_COLORMAP (f); + attrs.valuemask |= XpmVisual; + attrs.valuemask |= XpmColormap; + rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), bits, &bitmap, &mask, &attrs); if (rc != XpmSuccess) @@ -3797,6 +3802,9 @@ attrs.valuemask |= XpmCloseness; #endif /* not XpmAllocCloseColors */ #endif /* ALLOC_XPM_COLORS */ +#ifdef ALLOC_XPM_COLORS + xpm_init_color_cache (f, &attrs); +#endif /* If image specification contains symbolic color definitions, add these to `attrs'. */