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.40.tar.gz
[xscreensaver]
/
hacks
/
cloudlife.c
diff --git
a/hacks/cloudlife.c
b/hacks/cloudlife.c
index 8d898d8f35841208ab626cf2f608b6a037e4b76e..4b65f9e3fa3250543f60d47c95cdac3ab2fcb858 100644
(file)
--- a/
hacks/cloudlife.c
+++ b/
hacks/cloudlife.c
@@
-302,7
+302,8
@@
cloudlife_init (Display *dpy, Window window)
if (st->cycle_colors) {
st->colors = (XColor *) xrealloc(st->colors, sizeof(XColor) * (st->ncolors+1));
if (st->cycle_colors) {
st->colors = (XColor *) xrealloc(st->colors, sizeof(XColor) * (st->ncolors+1));
- make_smooth_colormap (st->dpy, st->xgwa.visual, st->xgwa.colormap, st->colors, &st->ncolors,
+ make_smooth_colormap (st->xgwa.screen, st->xgwa.visual,
+ st->xgwa.colormap, st->colors, &st->ncolors,
True, &tmp, True);
}
True, &tmp, True);
}
@@
-376,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;
}
@@
-390,12
+399,16
@@
cloudlife_free (Display *dpy, Window window, void *closure)
static const char *cloudlife_defaults[] = {
".background: black",
".foreground: blue",
static const char *cloudlife_defaults[] = {
".background: black",
".foreground: blue",
+ "*fpsSolid: true",
"*cycleDelay: 25000",
"*cycleColors: 2",
"*ncolors: 64",
"*maxAge: 64",
"*initialDensity: 30",
"*cellSize: 3",
"*cycleDelay: 25000",
"*cycleColors: 2",
"*ncolors: 64",
"*maxAge: 64",
"*initialDensity: 30",
"*cellSize: 3",
+#ifdef HAVE_MOBILE
+ "*ignoreRotation: True",
+#endif
0
};
0
};
@@
-412,4
+425,4
@@
static XrmOptionDescRec cloudlife_options[] = {
};
};
-XSCREENSAVER_MODULE ("Cloud
l
ife", cloudlife)
+XSCREENSAVER_MODULE ("Cloud
L
ife", cloudlife)