normal: speed up rotation out #599

This commit is contained in:
nick black 2020-06-12 09:09:40 -04:00
parent 4f8f16df8d
commit 03c748476b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

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