X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Frotor.c;h=293b273cb58bfbfc4b108c191d5c6cba5c8ec0dd;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hp=4b32bdf7f5fe494b419b63f9d1f62e215502ec1c;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/rotor.c b/hacks/rotor.c index 4b32bdf7..293b273c 100644 --- a/hacks/rotor.c +++ b/hacks/rotor.c @@ -37,7 +37,9 @@ static const char sccsid[] = "@(#)rotor.c 5.00 2000/11/01 xlockmore"; "*count: 4 \n" \ "*cycles: 20 \n" \ "*size: -6 \n" \ - "*ncolors: 200 \n" + "*ncolors: 200 \n" \ + "*fpsSolid: true \n" \ + # define SMOOTH_COLORS # define reshape_rotor 0 # define rotor_handle_event 0 @@ -125,14 +127,10 @@ init_rotor (ModeInfo * mi) unsigned char wasiconified; rotorstruct *rp; - if (rotors == NULL) { - if ((rotors = (rotorstruct *) calloc(MI_NUM_SCREENS(mi), - sizeof (rotorstruct))) == NULL) - return; - } + MI_INIT (mi, rotors, 0); rp = &rotors[MI_SCREEN(mi)]; -#ifdef HAVE_COCOA +#ifdef HAVE_JWXYZ jwxyz_XSetAntiAliasing (MI_DISPLAY(mi), MI_GC(mi), False); #endif