X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fvermiculate.c;h=d1ef57198af245212cfc971fa17e2c4998507e67;hp=b96d3dc8e4b84f585b47dc761b7f899543df9a57;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/vermiculate.c b/hacks/vermiculate.c index b96d3dc8..d1ef5719 100644 --- a/hacks/vermiculate.c +++ b/hacks/vermiculate.c @@ -807,6 +807,11 @@ static void vermiculate_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->wid = w; + st->hei = h; + free (st->point); + st->point = (unsigned char *) calloc (1, st->wid * st->hei); } static Bool