X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxlyap.c;h=908d8d82374207bac9991675d9691cae807e6706;hb=0bd2eabab3e404c6769fe8f59b639275e960c415;hp=350888d0c379a45f6e3fab3acb65c6bb7070f247;hpb=5b7bc6e70fb439cf4c4bf771ae9f94077fe4fe08;p=xscreensaver diff --git a/hacks/xlyap.c b/hacks/xlyap.c index 350888d0..908d8d82 100644 --- a/hacks/xlyap.c +++ b/hacks/xlyap.c @@ -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 prob) ? 0 : 1; + forcing[i] = (random() > prob) ? 0 : 1; }