demo: push delaymult through to ncvisuals

This commit is contained in:
nick black 2020-01-15 04:50:13 -05:00 committed by Nick Black
parent 0f435240d6
commit b2dcc7cdf2
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ fadethread(void* vnc){
ncplane_putstr_aligned(apiap, 0, NCALIGN_CENTER,
"Apia 🡺 Atlanta. Samoa, tula'i ma sisi ia lau fu'a, lou pale lea!");
int three = 3;
ncvisual_stream(nc, ncv, &averr, 1, perframe, &three);
ncvisual_stream(nc, ncv, &averr, delaymultiplier, perframe, &three);
ncvisual_destroy(ncv);
ncplane_erase(ncp);
fade.tv_sec = 2;

View File

@ -29,7 +29,7 @@ view_video_demo(struct notcurses* nc){
return -1;
}
free(fm6);
int ret = ncvisual_stream(nc, ncv, &averr, 2.0/3.0, watch_for_keystroke, NULL);
int ret = ncvisual_stream(nc, ncv, &averr, 2.0/3.0 * delaymultiplier, watch_for_keystroke, NULL);
ncvisual_destroy(ncv);
return ret;
}

View File

@ -112,7 +112,7 @@ int xray_demo(struct notcurses* nc){
return -1;
}
struct ncplane* newpanel = NULL;
int ret = ncvisual_stream(nc, ncv, &averr, 0.5, perframecb, &newpanel);
int ret = ncvisual_stream(nc, ncv, &averr, 0.5 * delaymultiplier, perframecb, &newpanel);
ncvisual_destroy(ncv);
ncplane_destroy(n);
ncplane_destroy(newpanel);