summaryrefslogtreecommitdiff
path: root/lib/libX11/src/CrCmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libX11/src/CrCmap.c')
-rw-r--r--lib/libX11/src/CrCmap.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libX11/src/CrCmap.c b/lib/libX11/src/CrCmap.c
index c53faeb86..4ed67adc5 100644
--- a/lib/libX11/src/CrCmap.c
+++ b/lib/libX11/src/CrCmap.c
@@ -33,11 +33,11 @@ in this Software without prior written authorization from The Open Group.
#include "Xcmsint.h"
-Colormap XCreateColormap(dpy, w, visual, alloc)
-register Display *dpy;
-Window w;
-Visual *visual;
-int alloc;
+Colormap XCreateColormap(
+ register Display *dpy,
+ Window w,
+ Visual *visual,
+ int alloc)
{
register xCreateColormapReq *req;
Colormap mid;
@@ -53,7 +53,9 @@ int alloc;
UnlockDisplay(dpy);
SyncHandle();
+#ifdef XCMS
_XcmsAddCmapRec(dpy, mid, w, visual);
+#endif
return(mid);
}