X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fsphere.c;h=edeaa8f7597b8df6d2f4eb7090dcd700604e80f6;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hp=2484effcc690cb05a76e6af9ad172e8b6c3e91dc;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/sphere.c b/hacks/sphere.c index 2484effc..edeaa8f7 100644 --- a/hacks/sphere.c +++ b/hacks/sphere.c @@ -58,10 +58,12 @@ static const char sccsid[] = "@(#)sphere.c 5.00 2000/11/01 xlockmore"; #ifdef STANDALONE # define MODE_sphere -#define DEFAULTS "*delay: 1000 \n" \ +#define DEFAULTS "*delay: 20000 \n" \ "*cycles: 20 \n" \ "*size: 0 \n" \ - "*ncolors: 64 \n" + "*ncolors: 64 \n" \ + "*fpsSolid: true \n" \ + # define BRIGHT_COLORS # define reshape_sphere 0 # define sphere_handle_event 0 @@ -113,11 +115,7 @@ init_sphere(ModeInfo * mi) { spherestruct *sp; - if (spheres == NULL) { - if ((spheres = (spherestruct *) calloc(MI_NUM_SCREENS(mi), - sizeof (spherestruct))) == NULL) - return; - } + MI_INIT (mi, spheres, 0); sp = &spheres[MI_SCREEN(mi)]; if (sp->points != NULL) {