struct timeval now;
long timediff;
gettimeofday(&now, NULL);
- timediff = now.tv_sec*1000000 + now.tv_usec - st->lastframe.tv_sec*1000000 - st->lastframe.tv_usec;
+ /* timediff = now.tv_sec*1000000 + now.tv_usec - st->lastframe.tv_sec*1000000 - st->lastframe.tv_usec; */
+ timediff = (now.tv_sec - st->lastframe.tv_sec) * 1000000 + now.tv_usec - st->lastframe.tv_usec;
if (timediff < utimeperframe) {
/* fprintf(stderr,"sleeping for %i\n",utimeperframe-timediff); */
this_delay = (utimeperframe-timediff);
whirlwindwarp_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ st->scrwid = w;
+ st->scrhei = h;
}
static Bool
"*points: 400",
"*tails: 8",
"*meters: false",
+#ifdef HAVE_MOBILE
+ "*ignoreRotation: True",
+#endif
0
};