- /* Fake out SGI's multi-colormap hardware; see utils/fade.c
- for an explanation. */
- for (i = 0; i < ncmaps; i += (extra_cmaps + 1))
- for (j = 0; j < (extra_cmaps + 1); j++)
- {
- cmaps[i+j] = XCreateColormap (si->dpy,
- RootWindow (si->dpy, i),
- DefaultVisual(si->dpy, i),
- AllocAll);
- if (cmaps[i+j])
- {
- blacken_colormap (ScreenOfDisplay(si->dpy, i), cmaps[i+j]);
- XInstallColormap (si->dpy, cmaps[i+j]);
- }
- }