http://www.ibiblio.org/pub/historic-linux/ftp-archives/sunsite.unc.edu/Sep-29-1996...
[xscreensaver] / hacks / greynetic.c
index 79e89c69f2c57354ab606be09fa6f90d13fccdc1..4dd3f172b608578507d2bff2d0dd72f5b67e5f0c 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1992 Jamie Zawinski <jwz@lucid.com>
+/* xscreensaver, Copyright (c) 1992, 1995 Jamie Zawinski <jwz@netscape.com>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -100,7 +100,7 @@ greynetic (dpy, window)
   gcv.stipple = pixmaps [random () % NBITS];
   if (mono_p)
     {
-      if (random () % 1)
+      if (random () & 1)
        gcv.foreground = fg, gcv.background = bg;
       else
        gcv.foreground = bg, gcv.background = fg;
@@ -141,8 +141,8 @@ greynetic (dpy, window)
 char *progclass = "Greynetic";
 
 char *defaults [] = {
-  "*background:        black",
-  "*foreground:        white",
+  "Greynetic.background:       black",         /* to placate SGI */
+  "Greynetic.foreground:       white",
   "*delay:     0",
   0
 };