X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fvisual.c;h=2e3b9a9619007a5605cc23b3649560b75b4dbfd2;hb=4cecfc89e5e889c7232693897c06168fb378bd5c;hp=4e88bea5a36a378ade0b23bff3635f181c50e4f4;hpb=14627f4038ada5d11456f3770090f3c39740d70f;p=xscreensaver diff --git a/utils/visual.c b/utils/visual.c index 4e88bea5..2e3b9a96 100644 --- a/utils/visual.c +++ b/utils/visual.c @@ -19,6 +19,7 @@ #include "resources.h" /* for get_string_resource() */ #include "visual.h" +#include #include extern char *progname; @@ -428,13 +429,12 @@ has_writable_cells (Screen *screen, Visual *visual) { case GrayScale: /* Mappable grays. */ case PseudoColor: /* Mappable colors. */ + case DirectColor: /* Like TrueColor, but with three colormaps: + one each for red, green, and blue. */ return True; case StaticGray: /* Fixed grays. */ case TrueColor: /* Fixed colors. */ - case StaticColor: /* (What's the difference again?) */ - case DirectColor: /* DirectColor visuals are like TrueColor, but have - three colormaps - one for each component of RGB. - Screw it. */ + case StaticColor: /* Like PseudoColor with an unmodifiable colormap. */ return False; default: abort();