X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Feruption.c;fp=hacks%2Feruption.c;h=5749aa6d7692e0f720f3ee50b6025068fcc66449;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=03b9645ecf48b9153bf544fb363dcd07ecaf04ef;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3;p=xscreensaver diff --git a/hacks/eruption.c b/hacks/eruption.c index 03b9645e..5749aa6d 100644 --- a/hacks/eruption.c +++ b/hacks/eruption.c @@ -449,6 +449,21 @@ static void eruption_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { +#if 0 + struct state *st = (struct state *) closure; + int i; + for (i = 0; i < st->iWinHeight; ++i) + free (st->fire[i]); + + st->iWinWidth = w; + st->iWinHeight = h; + + free (st->fire); + st->fire = calloc( st->iWinHeight, sizeof(unsigned char*)); + for (i = 0; i < st->iWinHeight; ++i) + st->fire[i] = calloc( st->iWinWidth, sizeof(unsigned char)); + st->draw_i = -1; +#endif } static Bool