mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
normal: speed up rotation out #599
This commit is contained in:
parent
4f8f16df8d
commit
03c748476b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user