[intro] check for on for orcaride

This commit is contained in:
nick black 2021-03-23 21:22:37 -04:00 committed by Nick Black
parent beb254ec90
commit 1a20632b68
4 changed files with 4 additions and 2 deletions

Binary file not shown.

BIN
data/notcursesIII.mkv Normal file

Binary file not shown.

View File

@ -206,7 +206,9 @@ int intro(struct notcurses* nc){
timespec_div(&demodelay, 10, &iter);
demo_nanosleep(nc, &iter);
clock_gettime(CLOCK_MONOTONIC, &now);
orcaride(nc, on, rows, cols, flipmode);
if(on){
orcaride(nc, on, rows, cols, flipmode);
}
}while(timespec_to_ns(&now) < deadline);
ncplane_destroy(on);
if(!notcurses_canfade(nc)){

View File

@ -89,7 +89,7 @@ int xray_demo(struct notcurses* nc){
if(n == NULL){
return -1;
}
char* path = find_data("notcursesII.mkv");
char* path = find_data("notcursesIII.mkv");
struct ncvisual* ncv = ncvisual_from_file(path);
free(path);
if(ncv == NULL){