+ front = mac_frontwindow();
+ if (front != NULL) {
+ ks = mac_windowkey(front);
+ if (ks->collecting_entropy) {
+ GetMouse(&mousenow);
+ if (mousenow.h != mousethen.h || mousenow.v != mousethen.v) {
+ ks->entropy[ks->entropy_got++] = *(unsigned *)&mousenow;
+ ks->entropy[ks->entropy_got++] = TickCount();
+ if (ks->entropy_got >= ks->entropy_required)
+ ks->collecting_entropy = 0;
+ SetControlValue(ks->progress, ks->entropy_got);
+ mousethen = mousenow;
+ }
+ SetEmptyRgn(cursrgn);
+ }
+ }
+