X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fcolors.c;h=698bc9402fbeeec33d63570a0c6d240f2b645355;hp=096311624e207601682f6542056870d1171b86bb;hb=551b3de3f619c04c2dd1971ee9b3f02e270c28c9;hpb=5b7bc6e70fb439cf4c4bf771ae9f94077fe4fe08 diff --git a/utils/colors.c b/utils/colors.c index 09631162..698bc940 100644 --- a/utils/colors.c +++ b/utils/colors.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -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)