X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fxlyap.c;h=a343cfff4759176ddd169b117aa5c9e49a329625;hp=26dae592c499d87217cdfe71559c2c54d9e72c09;hb=c6b273ef7292ba10943694df1656b05203d7b62f;hpb=df053bcb240bd8d82e3bebf48a9766a8728bca4b diff --git a/hacks/xlyap.c b/hacks/xlyap.c index 26dae592..a343cfff 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", @@ -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 prob) ? 0 : 1; + forcing[i] = (random() > prob) ? 0 : 1; }