normal: finally move to pi/4 rotations #599

This commit is contained in:
nick black 2020-06-12 04:15:44 -04:00
parent dc49bb943b
commit b119cec29e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -73,13 +73,13 @@ rotate_visual(struct notcurses* nc, struct ncplane* n, int dy, int dx){
n = notcurses_stddim_yx(nc, &dimy, &dimx); n = notcurses_stddim_yx(nc, &dimy, &dimx);
bool failed = false; bool failed = false;
const int ROTATIONS = 32; const int ROTATIONS = 32;
timespec_div(&demodelay, ROTATIONS / 4, &scaled); timespec_div(&demodelay, ROTATIONS / 2, &scaled);
struct ncvisual_options vopts = { struct ncvisual_options vopts = {
}; };
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 / 2)){ if(ncvisual_rotate(ncv, -M_PI / 4)){
failed = true; failed = true;
break; break;
} }