http://ftp.x.org/contrib/applications/xscreensaver-2.23.tar.gz
[xscreensaver] / hacks / xlyap.c
index 350888d0c379a45f6e3fab3acb65c6bb7070f247..908d8d82374207bac9991675d9691cae807e6706 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",
@@ -109,14 +110,22 @@ XrmOptionDescRec options [] = {
 
 #ifdef SIXTEEN_COLORS
 #define MAXPOINTS  128
+#ifdef BIGMEM
 #define MAXFRAMES 4
+#else
+#define MAXFRAMES 2
+#endif
 #define MAXCOLOR 16
 static int maxcolor=16, startcolor=0, color_offset=0, mincolindex=1;
 static int dwell=50, settle=25;
 static int width=128, height=128, xposition=128, yposition=128;
 #else
 #define MAXPOINTS  256
+#ifdef BIGMEM
 #define MAXFRAMES 8
+#else
+#define MAXFRAMES 2
+#endif
 #define MAXCOLOR 256
 static int maxcolor=256, startcolor=17, color_offset=96, mincolindex=33;
 static int dwell=100, settle=50;
@@ -777,7 +786,6 @@ init_data(void)
   if (show)
     show_defaults();
   InitBuffer();
-  ya_rand_init(0);
 }
 
 static void
@@ -1961,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;
 }