http://www.jwz.org/xscreensaver/xscreensaver-5.12.tar.gz
[xscreensaver] / hacks / vermiculate.c
index 26011446cf4e9709842d6fcbea294abedc710f02..b96d3dc8e4b84f585b47dc761b7f899543df9a57 100644 (file)
@@ -264,7 +264,7 @@ bordupdate (struct state *st)
     for (x = xmin; x <= xmax; x++)
       sp (st, x, ybord, st->bordcol);
     for (y = ymin; y <= ymax; y++)
-      sp (st, ybord, y, st->bordcol);
+      sp (st, xbord, y, st->bordcol);
   }
 }
 
@@ -795,7 +795,7 @@ vermiculate_init (Display *d, Window w)
     st->mygc = XCreateGC (st->dpy, st->window, 0, &mygcv);
   }
 
-  st->point = (unsigned char *) malloc (st->wid * st->hei);
+  st->point = (unsigned char *) calloc (1, st->wid * st->hei);
   maininit (st);
   palupdate (st, True);
   consume_instring(st);
@@ -1198,6 +1198,7 @@ vermiculate_free (Display *dpy, Window window, void *closure)
 static const char *vermiculate_defaults[] = {
   ".background: Black",
   "*ticks: 20000",
+  "*fpsSolid:  true",
   "*speed: 0",
   "*instring: ",
   0