# HG changeset patch # User Richard M. Stallman # Date 934025307 0 # Node ID 8ab4da818dc0729cbbd98c29b8743d054e6b8abc # Parent 69699e7e8e81ffd6e284a4ddaf7e8f1b0d7fdbef (xpm_load) [!XpmAllocCloseColors]: Use XpmCloseness and attrs.closeness instead. diff -r 69699e7e8e81 -r 8ab4da818dc0 src/xfns.c --- 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'. */