aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/CrCmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/CrCmap.c')
-rw-r--r--nx-X11/lib/X11/CrCmap.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/nx-X11/lib/X11/CrCmap.c b/nx-X11/lib/X11/CrCmap.c
index 30e1a89c9..9904c7dda 100644
--- a/nx-X11/lib/X11/CrCmap.c
+++ b/nx-X11/lib/X11/CrCmap.c
@@ -31,11 +31,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;
@@ -51,7 +51,9 @@ int alloc;
UnlockDisplay(dpy);
SyncHandle();
+#ifdef XCMS
_XcmsAddCmapRec(dpy, mid, w, visual);
+#endif
return(mid);
}