http://ftp.x.org/contrib/applications/xscreensaver-2.21.tar.gz
[xscreensaver] / hacks / xlyap.c
index 26dae592c499d87217cdfe71559c2c54d9e72c09..a343cfff4759176ddd169b117aa5c9e49a329625 100644 (file)
@@ -47,7 +47,8 @@
 char *progclass = "XLyap";
 
 char *defaults [] = {
-  "XLyap.background:   black",         /* to placate SGI */
+  "*background:                black",
+  "*foreground:                white",
   "*randomize:         false",
   "*builtin:           -1",
   "*minColor:          1",
@@ -785,7 +786,6 @@ init_data(void)
   if (show)
     show_defaults();
   InitBuffer();
-  ya_rand_init(0);
 }
 
 static void
@@ -1969,5 +1969,5 @@ setforcing(void)
 {
   static int i;
   for (i=0;i<MAXINDEX;i++)
-    forcing[i] = (ya_random() > prob) ? 0 : 1;
+    forcing[i] = (random() > prob) ? 0 : 1;
 }