From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / sphere.c
index 2484effcc690cb05a76e6af9ad172e8b6c3e91dc..edeaa8f7597b8df6d2f4eb7090dcd700604e80f6 100644 (file)
@@ -58,10 +58,12 @@ static const char sccsid[] = "@(#)sphere.c  5.00 2000/11/01 xlockmore";
 
 #ifdef STANDALONE
 # define MODE_sphere
-#define DEFAULTS       "*delay: 1000 \n" \
+#define DEFAULTS       "*delay: 20000 \n" \
                                        "*cycles: 20 \n" \
                                        "*size: 0 \n" \
-                                       "*ncolors: 64 \n"
+                                       "*ncolors: 64 \n" \
+                                       "*fpsSolid: true \n" \
+
 # define BRIGHT_COLORS
 # define reshape_sphere 0
 # define sphere_handle_event 0
@@ -113,11 +115,7 @@ init_sphere(ModeInfo * mi)
 {
        spherestruct *sp;
 
-       if (spheres == NULL) {
-               if ((spheres = (spherestruct *) calloc(MI_NUM_SCREENS(mi),
-                                            sizeof (spherestruct))) == NULL)
-                       return;
-       }
+       MI_INIT (mi, spheres, 0);
        sp = &spheres[MI_SCREEN(mi)];
 
        if (sp->points != NULL) {