"*suppressRotationAnimation: True\n" \
# define refresh_morph3d 0
+# define release_morph3d 0
# define morph3d_handle_event 0
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
#ifdef USE_MODULES
ModStruct morph3d_description =
-{"morph3d", "init_morph3d", "draw_morph3d", "release_morph3d",
+{"morph3d", "init_morph3d", "draw_morph3d", (char *) NULL,
"draw_morph3d", "change_morph3d", (char *) NULL, &morph3d_opts,
1000, 0, 1, 1, 4, 1.0, "",
"Shows GL morphing polyhedra", 0, NULL};
{
morph3dstruct *mp;
- if (morph3d == NULL) {
- if ((morph3d = (morph3dstruct *) calloc(MI_NUM_SCREENS(mi),
- sizeof (morph3dstruct))) == NULL)
- return;
- }
+ MI_INIT (mi, morph3d, NULL);
mp = &morph3d[MI_SCREEN(mi)];
mp->step = NRAND(90);
mp->VisibleSpikes = 1;
}
#endif /* !STANDALONE */
-ENTRYPOINT void
-release_morph3d(ModeInfo * mi)
-{
- if (morph3d != NULL) {
- (void) free((void *) morph3d);
- morph3d = (morph3dstruct *) NULL;
- }
- FreeAllGL(mi);
-}
-
#endif
XSCREENSAVER_MODULE ("Morph3D", morph3d)