X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fphotopile.c;h=fecef1d8f9aa3ccb302304bf6b1f17be170bf673;hb=39809ded547bdbb08207d3e514950425215b4410;hp=847b3b2926dd149b697e23c4ec16bf35306ccbcf;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c;p=xscreensaver diff --git a/hacks/glx/photopile.c b/hacks/glx/photopile.c index 847b3b29..fecef1d8 100644 --- a/hacks/glx/photopile.c +++ b/hacks/glx/photopile.c @@ -29,9 +29,9 @@ "*chooseRandomImages: True \n" \ "*suppressRotationAnimation: True\n" \ -# define refresh_photopile 0 +# define free_photopile 0 # define release_photopile 0 -# define photopile_handle_event 0 +# define photopile_handle_event xlockmore_no_events #undef countof #define countof(x) (sizeof((x))/sizeof((*x))) @@ -480,11 +480,7 @@ init_photopile (ModeInfo *mi) photopile_state *ss; int wire = MI_IS_WIREFRAME(mi); - if (sss == NULL) { - if ((sss = (photopile_state *) - calloc (MI_NUM_SCREENS(mi), sizeof(photopile_state))) == NULL) - return; - } + MI_INIT (mi, sss); ss = &sss[screen]; ss->mi = mi;