From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / spiral.c
index 5f886df0d6e248a69c0c967ef94fa1035bda8901..fc73104ca7800d141d03dadfa0b3caee23b4870f 100644 (file)
@@ -38,7 +38,9 @@ static const char sccsid[] = "@(#)spiral.c    5.00 2000/11/01 xlockmore";
 #define DEFAULTS       "*delay: 50000 \n" \
                                        "*count: 40 \n" \
                                        "*cycles: 350 \n" \
-                                       "*ncolors: 64 \n"
+                                       "*ncolors: 64 \n" \
+                                       "*fpsSolid: true \n" \
+
 # define SMOOTH_COLORS
 # define reshape_spiral 0
 # define spiral_handle_event 0
@@ -125,14 +127,10 @@ init_spiral(ModeInfo * mi)
        spiralstruct *sp;
        int         i;
 
-       if (spirals == NULL) {
-               if ((spirals = (spiralstruct *) calloc(MI_NUM_SCREENS(mi),
-                                            sizeof (spiralstruct))) == NULL)
-                       return;
-       }
+       MI_INIT (mi, spirals, 0);
        sp = &spirals[MI_SCREEN(mi)];
 
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
     jwxyz_XSetAntiAliasing (MI_DISPLAY(mi), MI_GC(mi),  False);
 #endif