aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1999-08-07 11:28:27 +0000
committerRichard M. Stallman <[email protected]>1999-08-07 11:28:27 +0000
commite4c082be5e69d70a615fea0cf28fea0b42514fe1 (patch)
treef0582bd91148cfd2bd78665d59c9fc2e190153d8 /src/xfns.c
parentffe4eb5ea22b7a2c3f8493f31c9901570c0c2953 (diff)
(xpm_load) [!XpmAllocCloseColors]:
Use XpmCloseness and attrs.closeness instead.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 2d7a250069..81e4cece27 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'. */