"*erase: True",
"*eraseCount: 25",
"*square: True",
- "*delay: 1000",
+ "*delay: 400000",
"*curves: True",
"*angles: True",
"*scroll: False",
"*anim-delay: 100",
"*anim-step-size: 3",
"*randomize: true",
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};
st->frame = XCreatePixmap(st->dpy,st->window, st->xgwa.width+st->overlap, st->xgwa.height+st->overlap, st->xgwa.depth);
+ XFillRectangle(st->dpy, st->frame, st->bgc, 0, 0,
+ st->xgwa.width + st->overlap,
+ st->xgwa.height + st->overlap);
return st;
}
XCopyArea(st->dpy,st->frame,st->window,st->agc,0,0,st->xgwa.width,st->xgwa.height,0,0);
- /*printf("%d\n",st->delay);*/
- return st->delay*1000;
+ return st->delay;
}
static void
truchet_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ st->width = w;
+ st->height = h;
+ XGetWindowAttributes (st->dpy, st->window, &st->xgwa);
}
static Bool