http://ftp.x.org/contrib/applications/xscreensaver-3.10.tar.gz
[xscreensaver] / utils / colors.c
index b568a24dd11d9379b69034746bc1b855d3bc76ee..698bc9402fbeeec33d63570a0c6d240f2b645355 100644 (file)
@@ -560,7 +560,8 @@ make_uniform_colormap (Display *dpy, Visual *visual, Colormap cmap,
                  0,   S, V,
                  359, S, V,
                  colors, &ncolors,
-                 False, True, wanted_writable);
+                 False, True,
+                  (writable_pP && *writable_pP));
 
   /* If we tried for writable cells and got none, try for non-writable. */
   if (allocate_p && *ncolorsP == 0 && writable_pP && *writable_pP)