projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver]
/
hacks
/
substrate.c
diff --git
a/hacks/substrate.c
b/hacks/substrate.c
index ce9c696b466835212fcfb9fd715b0c1b8948d07b..efe11fc55762e117b8fad1768f208aa8be4fc208 100644
(file)
--- 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);
}
XSetForeground(st->dpy, st->fgc, st->gcv.foreground);
}
+ /* #### mi->recursion_depth = st->f->cycles; */
return st->growth_delay;
}
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)
{
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;
}
return False;
}
@@
-719,6
+726,9
@@
static const char *substrate_defaults[] = {
"*maxCracks: 100",
"*sandGrains: 64",
"*circlePercent: 33",
"*maxCracks: 100",
"*sandGrains: 64",
"*circlePercent: 33",
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};
0
};