X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fwander.c;h=8fa8995ae043b9eec72b5473c8356b3c57b378c2;hb=c141c2b05e374757b6499d12bb8a6d4d943b1529;hp=9cdd090bd182a4ba06b0ac0afd2b0e5a277a43d9;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/wander.c b/hacks/wander.c index 9cdd090b..8fa8995a 100644 --- a/hacks/wander.c +++ b/hacks/wander.c @@ -210,6 +210,11 @@ static void wander_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->width = w / st->size; + st->height = h / st->size; + st->width_1 = st->width - 1; + st->height_1 = st->height - 1; } static Bool @@ -227,6 +232,7 @@ static const char *wander_defaults [] = { ".background: black", ".foreground: white", + ".fpsSolid: true", ".advance: 1", ".density: 2", ".length: 25000",