summaryrefslogtreecommitdiff
path: root/src/gui_xmebw.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-11-08 19:49:02 +0000
committerBram Moolenaar <Bram@vim.org>2007-11-08 19:49:02 +0000
commit6f1924547b30753738ea0eb41ab31513894fde83 (patch)
tree96f66ba95fffc6689f546ec87d4054853be3fab3 /src/gui_xmebw.c
parenta443af88a48d74b56ea9aa2aa486f52f340bbf77 (diff)
downloadvim-git-6f1924547b30753738ea0eb41ab31513894fde83.tar.gz
updated for version 7.1-153v7.1.153
Diffstat (limited to 'src/gui_xmebw.c')
-rw-r--r--src/gui_xmebw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui_xmebw.c b/src/gui_xmebw.c
index 85f25cd0e..77b59c240 100644
--- a/src/gui_xmebw.c
+++ b/src/gui_xmebw.c
@@ -395,11 +395,15 @@ set_pixmap(XmEnhancedButtonWidget eb)
/* Create the "highlight" pixmap. */
color[4].pixel = eb->primitive.bottom_shadow_color;
+#ifdef XpmAllocColor /* SGI doesn't have it */
attr.valuemask = XpmColorSymbols | XpmCloseness | XpmAllocColor;
+ attr.alloc_color = alloc_color;
+#else
+ attr.valuemask = XpmColorSymbols | XpmCloseness;
+#endif
attr.closeness = 65535; /* accuracy isn't crucial */
attr.colorsymbols = color;
attr.numsymbols = XtNumber(color);
- attr.alloc_color = alloc_color;
status = XpmCreatePixmapFromData(dpy, root, data, &pix, NULL, &attr);
XpmFreeAttributes(&attr);