From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / rotor.c
index 4b32bdf7f5fe494b419b63f9d1f62e215502ec1c..293b273cb58bfbfc4b108c191d5c6cba5c8ec0dd 100644 (file)
@@ -37,7 +37,9 @@ static const char sccsid[] = "@(#)rotor.c     5.00 2000/11/01 xlockmore";
                                        "*count: 4 \n" \
                                        "*cycles: 20 \n" \
                                        "*size: -6 \n" \
-                                       "*ncolors: 200 \n"
+                                       "*ncolors: 200 \n" \
+                                       "*fpsSolid: true \n" \
+
 # define SMOOTH_COLORS
 # define reshape_rotor 0
 # define rotor_handle_event 0
@@ -125,14 +127,10 @@ init_rotor (ModeInfo * mi)
        unsigned char wasiconified;
        rotorstruct *rp;
 
-       if (rotors == NULL) {
-               if ((rotors = (rotorstruct *) calloc(MI_NUM_SCREENS(mi),
-                                             sizeof (rotorstruct))) == NULL)
-                       return;
-       }
+       MI_INIT (mi, rotors, 0);
        rp = &rotors[MI_SCREEN(mi)];
 
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
     jwxyz_XSetAntiAliasing (MI_DISPLAY(mi), MI_GC(mi),  False);
 #endif