From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver] / hacks / glx / noof.c
index 4ca77679f8f19feabb577174e712fa64a0ed247b..4b23035d050e908ade91a8c9b19a50b11b23ac6d 100644 (file)
@@ -17,8 +17,9 @@
                        "*showFPS:      False       \n" \
                        "*fpsSolid:     True        \n" \
                        "*doubleBuffer: False       \n" \
+                       "*suppressRotationAnimation: True\n" \
 
-# define refresh_noof 0
+# define free_noof 0
 # define release_noof 0
 # define noof_handle_event 0
 #include "xlockmore.h"
@@ -443,14 +444,7 @@ init_noof (ModeInfo *mi)
   int i;
   noof_configuration *bp;
 
-  if (!bps) {
-    bps = (noof_configuration *)
-      calloc (MI_NUM_SCREENS(mi), sizeof (noof_configuration));
-    if (!bps) {
-      fprintf(stderr, "%s: out of memory\n", progname);
-      exit(1);
-    }
-  }
+  MI_INIT (mi, bps);
 
   bp = &bps[MI_SCREEN(mi)];