normal: speed up rotation out #599

pull/710/head
nick black 4 years ago
parent 4f8f16df8d
commit 03c748476b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -79,7 +79,7 @@ rotate_visual(struct notcurses* nc, struct ncplane* n, int dy, int dx){
ncplane_erase(n); ncplane_erase(n);
for(double i = 0 ; i < ROTATIONS ; ++i){ for(double i = 0 ; i < ROTATIONS ; ++i){
demo_nanosleep(nc, &scaled); demo_nanosleep(nc, &scaled);
if(ncvisual_rotate(ncv, -M_PI / 4)){ if(ncvisual_rotate(ncv, -M_PI / (i / 8 + 2))){
failed = true; failed = true;
break; break;
} }

Loading…
Cancel
Save