-/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997, 1998, 2003, 2006
- * Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1992-2008 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
unsigned long fg, bg, pixels [512];
int npixels;
int xlim, ylim;
+ Bool grey_p;
Colormap cmap;
};
st->ylim = xgwa.height;
st->cmap = xgwa.colormap;
st->npixels = 0;
+ st->grey_p = get_boolean_resource(st->dpy, "grey", "Boolean");
gcv.foreground= st->fg= get_pixel_resource(st->dpy, st->cmap, "foreground","Foreground");
gcv.background= st->bg= get_pixel_resource(st->dpy, st->cmap, "background","Background");
bgc.blue = random ();
# endif /* DO_STIPPLE */
+ if (st->grey_p)
+ {
+ fgc.green = fgc.blue = fgc.red;
+ bgc.green = bgc.blue = bgc.red;
+ }
+
if (! XAllocColor (st->dpy, st->cmap, &fgc))
goto REUSE;
st->pixels [st->npixels++] = fgc.pixel;
static const char *greynetic_defaults [] = {
".background: black",
".foreground: white",
+ "*fpsSolid: true",
"*delay: 10000",
+ "*grey: false",
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};
static XrmOptionDescRec greynetic_options [] = {
{ "-delay", ".delay", XrmoptionSepArg, 0 },
+ { "-grey", ".grey", XrmoptionNoArg, "True" },
{ 0, 0, 0, 0 }
};