From: Richard M. Stallman Date: Sat, 7 Aug 1999 11:28:27 +0000 (+0000) Subject: (xpm_load) [!XpmAllocCloseColors]: X-Git-Tag: emacs-pretest-21.0.90~7241 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4c082be5e69d70a615fea0cf28fea0b42514fe1;p=emacs.git (xpm_load) [!XpmAllocCloseColors]: Use XpmCloseness and attrs.closeness instead. --- diff --git a/src/xfns.c b/src/xfns.c index 2d7a2500692..81e4cece27f 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -6948,8 +6948,13 @@ xpm_load (f, img) 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'. */