From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / rotor.c
index eb1a0b78313e25525db2feef4c7b653f38e68365..293b273cb58bfbfc4b108c191d5c6cba5c8ec0dd 100644 (file)
@@ -127,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