From e4c082be5e69d70a615fea0cf28fea0b42514fe1 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 7 Aug 1999 11:28:27 +0000 Subject: [PATCH] (xpm_load) [!XpmAllocCloseColors]: Use XpmCloseness and attrs.closeness instead. --- src/xfns.c | 5 +++++ 1 file changed, 5 insertions(+) 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'. */ -- 2.39.5