From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / vines.c
index 2000cc9aba9c55ad492a8ff4b10d50e902da6388..1abf29916de8add2071b45dbb50070ea4f798f76 100644 (file)
@@ -47,7 +47,9 @@ static const char sccsid[] = "@(#)vines.c     5.00 2000/11/01 xlockmore";
 # define MODE_vines
 # define DEFAULTS      "*delay: 200000 \n" \
                                        "*count: 0 \n" \
-                                       "*ncolors: 64 \n"
+                                       "*ncolors: 64 \n" \
+                                       "*fpsSolid: true \n" \
+
 # include "xlockmore.h"                /* in xscreensaver distribution */
 # define reshape_vines 0
 # define vines_handle_event 0
@@ -101,12 +103,7 @@ init_vines(ModeInfo * mi)
 {
        vinestruct *fp;
 
-       if (vines == NULL) {
-               if ((vines = (vinestruct *) calloc(MI_NUM_SCREENS(mi),
-                                            sizeof (vinestruct))) == NULL) {
-                       return;
-               }
-       }
+       MI_INIT (mi, vines, 0);
        fp = &vines[MI_SCREEN(mi)];
 
        fp->i = 0;