X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fxrayswarm.c;h=f3b8184800ee07973e504d548b565e148eb867d0;hp=9b9faef799d9b53658c5c9bbade18c6a6cb63def;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/xrayswarm.c b/hacks/xrayswarm.c index 9b9faef7..f3b81848 100644 --- a/hacks/xrayswarm.c +++ b/hacks/xrayswarm.c @@ -1196,6 +1196,12 @@ static void xrayswarm_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->xsize = w; + st->ysize = h; + st->xc = st->xsize >> 1; + st->yc = st->ysize >> 1; + st->maxy = st->ysize/(float)st->xsize; } static Bool