st->colors[0].pixel = get_pixel_resource(st->dpy, st->xgwa.colormap, "foreground", "Foreground");
}
else {
- make_color_loop(st->dpy, st->xgwa.colormap, 0, 1, 1, 120, 1, 1, 240, 1, 1, st->colors, &st->ncolors, True, False);
+ make_color_loop(st->xgwa.screen, st->xgwa.visual, st->xgwa.colormap,
+ 0, 1, 1, 120, 1, 1, 240, 1, 1,
+ st->colors, &st->ncolors, True, False);
if (st->ncolors < 2)
goto MONO;
}
piecewise_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ XGetWindowAttributes(st->dpy, st->window, &st->xgwa);
}
static Bool
static const char *piecewise_defaults [] = {
".background: black",
".foreground: white",
- "*delay: 5000",
+ "*delay: 10000",
"*speed: 15",
"*ncolors: 256",
".colorspeed: 10",
#ifdef HAVE_DOUBLE_BUFFER_EXTENSION
"*useDBE: True",
#endif /* HAVE_DOUBLE_BUFFER_EXTENSION */
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};