st->instring = sampleStrings[n].str;
st->speed = sampleStrings[n].speed;
}
- if (st->speed == 0)
- {
- st->speed = 200;
- }
st->boxh = 10;
st->boxw = 10;
st->gridden = 0;
st->instring = 0;
st->max_ticks = get_integer_resource (st->dpy, "ticks", "Integer");
- {
- int temp = get_integer_resource (st->dpy, "speed", "Speed");
- if (temp != 0)
- st->speed = temp;
- }
-
+ st->speed = get_integer_resource (st->dpy, "speed", "Speed");
+ if (st->speed <= 0) st->speed = 1;
st->mycolors[0].pixel = BlackPixel (st->dpy, DefaultScreen (st->dpy));
XSetWindowBackground (st->dpy, st->window,
static Bool
vermiculate_event (Display *dpy, Window window, void *closure, XEvent *event)
{
+ struct state *st = (struct state *) closure;
+ if (screenhack_event_helper (dpy, window, event))
+ {
+ st->reset_p = 1;
+ return True;
+ }
return False;
}
block in which it's invoked, since it declares variables: */
#define forallinbank(LDP) linedata *LDP; int bankc; \
for (bankc = 1; \
- (LDP = &st->thread[st->bank[bankc - 1] - 1], \
- bankc <= st->bnkt); bankc++)
+ ((bankc <= st->bnkt) ? ( \
+ (LDP = &st->thread[st->bank[bankc - 1] - 1], 1) \
+ ) : 0) ; bankc++)
{
forallinbank (L) L->slice = degs / (st->ch - '0');
}
static const char *vermiculate_defaults[] = {
+ ".lowrez: true",
".background: Black",
"*ticks: 20000",
"*fpsSolid: true",
- "*speed: 0",
+ "*speed: 1",
"*instring: ",
-#ifdef USE_IPHONE
+#ifdef HAVE_MOBILE
"*ignoreRotation: True",
#endif
0