Mercurial > emacs
changeset 25200:8ab4da818dc0
(xpm_load) [!XpmAllocCloseColors]:
Use XpmCloseness and attrs.closeness instead.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 07 Aug 1999 11:28:27 +0000 |
parents | 69699e7e8e81 |
children | d0036b95d7f7 |
files | src/xfns.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Sat Aug 07 03:21:32 1999 +0000 +++ b/src/xfns.c Sat Aug 07 11:28:27 1999 +0000 @@ -6948,8 +6948,13 @@ attrs.visual = FRAME_X_DISPLAY_INFO (f)->visual; attrs.valuemask |= XpmVisual; attrs.valuemask |= XpmReturnAllocPixels; +#ifdef XpmAllocCloseColors attrs.alloc_close_colors = 1; attrs.valuemask |= XpmAllocCloseColors; +#else + attrs.closeness = 600; + attrs.valuemask |= XpmCloseness; +#endif /* If image specification contains symbolic color definitions, add these to `attrs'. */