-{"atlantis", "init_atlantis", "draw_atlantis", "release_atlantis",
+{"atlantis", "init_atlantis", "draw_atlantis", NULL,
"refresh_atlantis", "change_atlantis", NULL, &atlantis_opts,
1000, NUM_SHARKS, SHARKSPEED, SHARKSIZE, 64, 1.0, "",
"Shows moving sharks/whales/dolphin", 0, NULL};
"refresh_atlantis", "change_atlantis", NULL, &atlantis_opts,
1000, NUM_SHARKS, SHARKSPEED, SHARKSIZE, 64, 1.0, "",
"Shows moving sharks/whales/dolphin", 0, NULL};
/*
*-----------------------------------------------------------------------------
* Initialize atlantis. Called each time the window changes.
/*
*-----------------------------------------------------------------------------
* Initialize atlantis. Called each time the window changes.
- if (atlantis == NULL) {
- if ((atlantis = (atlantisstruct *) calloc(MI_NUM_SCREENS(mi),
- sizeof (atlantisstruct))) == NULL)
- return;
- }
+ MI_INIT(mi, atlantis, free_atlantis);
/*
*-----------------------------------------------------------------------------
* The display is being taken away from us. Free up malloc'ed
/*
*-----------------------------------------------------------------------------
* The display is being taken away from us. Free up malloc'ed