X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fquasicrystal.c;h=5190da32586dde74df95c5b6c97e15ee5dcba3b7;hb=39809ded547bdbb08207d3e514950425215b4410;hp=708794a6f7108be09ad54627ee85bcfc72f3fe7e;hpb=aa75c7476aeaa84cf3abc192b376a8b03c325213;p=xscreensaver diff --git a/hacks/glx/quasicrystal.c b/hacks/glx/quasicrystal.c index 708794a6..5190da32 100644 --- a/hacks/glx/quasicrystal.c +++ b/hacks/glx/quasicrystal.c @@ -24,7 +24,7 @@ "*wireframe: False \n" \ "*suppressRotationAnimation: True\n" \ -# define refresh_quasicrystal 0 +# define free_quasicrystal 0 # define release_quasicrystal 0 #undef countof #define countof(x) (sizeof((x))/sizeof((*x))) @@ -192,14 +192,7 @@ init_quasicrystal (ModeInfo *mi) int tex_width; int i; - if (!bps) { - bps = (quasicrystal_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (quasicrystal_configuration)); - if (!bps) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, bps); bp = &bps[MI_SCREEN(mi)];