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);
}
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;
}
static const char *cloudlife_defaults[] = {
".background: black",
".foreground: blue",
+ "*fpsSolid: true",
"*cycleDelay: 25000",
"*cycleColors: 2",
"*ncolors: 64",
"*maxAge: 64",
"*initialDensity: 30",
"*cellSize: 3",
+#ifdef HAVE_MOBILE
+ "*ignoreRotation: True",
+#endif
0
};
};
-XSCREENSAVER_MODULE ("Cloudlife", cloudlife)
+XSCREENSAVER_MODULE ("CloudLife", cloudlife)