-/* xscreensaver, Copyright (c) 1997-2007 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1997-2013 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
if (st->done_once)
{
if (st->colors && st->ncolors)
- free_colors (st->dpy, st->cmap, st->colors, st->ncolors);
+ free_colors (xgwa.screen, st->cmap, st->colors, st->ncolors);
if (st->colors)
free (st->colors);
st->colors = 0;
if (mono_p)
;
else if (random() % 3)
- make_smooth_colormap (st->dpy, xgwa.visual, st->cmap, st->colors, &st->ncolors,
+ make_smooth_colormap (xgwa.screen, xgwa.visual, st->cmap,
+ st->colors, &st->ncolors,
True, 0, True);
else
- make_uniform_colormap (st->dpy, xgwa.visual, st->cmap, st->colors, &st->ncolors,
+ make_uniform_colormap (xgwa.screen, xgwa.visual, st->cmap,
+ st->colors, &st->ncolors,
True, 0, True);
if (st->ncolors < 2) st->ncolors = 2;
starfish_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ free_starfish (st->starfish);
+ st->starfish = 0;
+ st->starfish = reset_starfish (st);
}
static Bool
static const char *starfish_defaults [] = {
".background: black",
".foreground: white",
+ "*fpsSolid: true",
"*delay: 10000",
"*thickness: 0", /* pixels, 0 = random */
"*rotation: -1", /* degrees, -1 = "random" */
"*duration: 30",
"*delay2: 5",
"*mode: random",
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};