static const char *ifs_defaults [] = {
".background: Black",
"*lensnum: 3",
+ "*fpsSolid: true",
"*length: 9",
"*mode: 0",
"*colors: 200",
"*doubleBuffer: False",
#else
"*doubleBuffer: True",
+#endif
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
#endif
0
};
if (st->colours) free(st->colours);
st->colours = (XColor *)calloc(st->ncolours, sizeof(XColor));
if (!st->colours) exit(1);
- make_smooth_colormap (st->dpy, xgwa.visual, xgwa.colormap,
+ make_smooth_colormap (xgwa.screen, xgwa.visual, xgwa.colormap,
st->colours, &st->ncolours,
True, 0, False);
static Bool
ifs_event (Display *dpy, Window window, void *closure, XEvent *event)
{
+ struct state *st = (struct state *)closure;
+ if (screenhack_event_helper (dpy, window, event))
+ {
+ int i;
+ for (i = 0; i < st->lensnum; i++) {
+ CreateLens(st,
+ myrandom(1)-0.5,
+ myrandom(1),
+ myrandom(4)-2,
+ myrandom(4)+2,
+ &st->lenses[i]);
+ }
+ return True;
+ }
return False;
}