+ else if (transparent_p)
+ {
+ nplanes = get_integer_resource ("planes", "Planes");
+ if (nplanes <= 0)
+ nplanes = (random() % (xgwa.depth-2)) + 2;
+
+ allocate_alpha_colors (xgwa.screen, xgwa.visual, xgwa.colormap,
+ &nplanes, True, &plane_masks,
+ &base_pixel);
+ if (nplanes <= 1)
+ {
+ fprintf (stderr,
+ "%s: couldn't allocate any color planes; turning transparency off.\n",
+ progname);
+ transparent_p = False;
+ goto COLOR;
+ }
+ }