X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fsubstrate.c;h=efe11fc55762e117b8fad1768f208aa8be4fc208;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=ce9c696b466835212fcfb9fd715b0c1b8948d07b;hpb=50be9bb40dc60130c99ffa568e6677779904ff70;p=xscreensaver diff --git a/hacks/substrate.c b/hacks/substrate.c index ce9c696b..efe11fc5 100644 --- a/hacks/substrate.c +++ b/hacks/substrate.c @@ -685,6 +685,7 @@ substrate_draw (Display *dpy, Window window, void *closure) XSetForeground(st->dpy, st->fgc, st->gcv.foreground); } + /* #### mi->recursion_depth = st->f->cycles; */ return st->growth_delay; } @@ -698,6 +699,12 @@ substrate_reshape (Display *dpy, Window window, void *closure, static Bool substrate_event (Display *dpy, Window window, void *closure, XEvent *event) { + struct state *st = (struct state *) closure; + if (screenhack_event_helper (dpy, window, event)) + { + st->f->cycles = st->max_cycles; + return True; + } return False; } @@ -719,6 +726,9 @@ static const char *substrate_defaults[] = { "*maxCracks: 100", "*sandGrains: 64", "*circlePercent: 33", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };