X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fspiral.c;h=fc73104ca7800d141d03dadfa0b3caee23b4870f;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hp=5f886df0d6e248a69c0c967ef94fa1035bda8901;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/spiral.c b/hacks/spiral.c index 5f886df0..fc73104c 100644 --- a/hacks/spiral.c +++ b/hacks/spiral.c @@ -38,7 +38,9 @@ static const char sccsid[] = "@(#)spiral.c 5.00 2000/11/01 xlockmore"; #define DEFAULTS "*delay: 50000 \n" \ "*count: 40 \n" \ "*cycles: 350 \n" \ - "*ncolors: 64 \n" + "*ncolors: 64 \n" \ + "*fpsSolid: true \n" \ + # define SMOOTH_COLORS # define reshape_spiral 0 # define spiral_handle_event 0 @@ -125,14 +127,10 @@ init_spiral(ModeInfo * mi) spiralstruct *sp; int i; - if (spirals == NULL) { - if ((spirals = (spiralstruct *) calloc(MI_NUM_SCREENS(mi), - sizeof (spiralstruct))) == NULL) - return; - } + MI_INIT (mi, spirals, 0); sp = &spirals[MI_SCREEN(mi)]; -#ifdef HAVE_COCOA +#ifdef HAVE_JWXYZ jwxyz_XSetAntiAliasing (MI_DISPLAY(mi), MI_GC(mi), False); #endif