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.36.tar.gz
[xscreensaver]
/
hacks
/
cloudlife.c
diff --git
a/hacks/cloudlife.c
b/hacks/cloudlife.c
index 4e848ef56619183dfac07b399e05ff390c49a643..4b65f9e3fa3250543f60d47c95cdac3ab2fcb858 100644
(file)
--- a/
hacks/cloudlife.c
+++ b/
hacks/cloudlife.c
@@
-377,6
+377,14
@@
cloudlife_reshape (Display *dpy, Window window, void *closure,
static Bool
cloudlife_event (Display *dpy, Window window, void *closure, XEvent *event)
{
static Bool
cloudlife_event (Display *dpy, Window window, void *closure, XEvent *event)
{
+ struct state *st = (struct state *) closure;
+ if (screenhack_event_helper (dpy, window, event))
+ {
+ XClearWindow (dpy, window);
+ st->cycles = 0;
+ st->field = init_field(st);
+ return True;
+ }
return False;
}
return False;
}
@@
-398,7
+406,7
@@
static const char *cloudlife_defaults[] = {
"*maxAge: 64",
"*initialDensity: 30",
"*cellSize: 3",
"*maxAge: 64",
"*initialDensity: 30",
"*cellSize: 3",
-#ifdef
USE_IPHON
E
+#ifdef
HAVE_MOBIL
E
"*ignoreRotation: True",
#endif
0
"*ignoreRotation: True",
#endif
0