- XFillArc(dpy, window, gc, (width/2)-rad, (height/2)-rad, rad*2, rad*2,
- (start+i) % full, inc);
- XFillArc(dpy, window, gc, (width/2)-rad, (height/2)-rad, rad*2, rad*2,
- (start-i) % full, -inc);
-
- XFillArc(dpy, window, gc, (width/2)-rad, (height/2)-rad, rad*2, rad*2,
- (start+q2+i) % full, inc);
- XFillArc(dpy, window, gc, (width/2)-rad, (height/2)-rad, rad*2, rad*2,
- (start+q2-i) % full, -inc);
-
- XFillArc(dpy, window, gc, (width/2)-rad, (height/2)-rad, rad*2, rad*2,
- (start+q2+q2+i) % full, inc);
- XFillArc(dpy, window, gc, (width/2)-rad, (height/2)-rad, rad*2, rad*2,
- (start+q2+q2-i) % full, -inc);
-
- XSync (dpy, False);
- usleep (delay*granularity);
+ int off = i * max / 3;
+ XFillArc (st->dpy, st->window, st->bg_gc,
+ (st->width / 2) - rad,
+ (st->height / 2) - rad,
+ rad*2, rad*2,
+ (st->start + off + oth) % max,
+ th-oth);
+ XFillArc (st->dpy, st->window, st->bg_gc,
+ (st->width / 2) - rad,
+ (st->height / 2) - rad,
+ rad*2, rad*2,
+ (st->start + off - oth) % max,
+ oth-th);