X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fwhirlwindwarp.c;h=3525e498b134c5461d4a4d230332387c0b3b276e;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=843a1cfbbcf4f4e1a419183ac8cff2502a8ff16b;hpb=4ade52359b6eba3621566dac79793a33aa4c915f;p=xscreensaver diff --git a/hacks/whirlwindwarp.c b/hacks/whirlwindwarp.c index 843a1cfb..3525e498 100644 --- a/hacks/whirlwindwarp.c +++ b/hacks/whirlwindwarp.c @@ -447,7 +447,8 @@ whirlwindwarp_draw (Display *dpy, Window window, void *closure) 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); @@ -489,7 +490,7 @@ static const char *whirlwindwarp_defaults [] = { "*points: 400", "*tails: 8", "*meters: false", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", #endif 0