mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
fallin': correct sense of ncvisual_decode() test
This commit is contained in:
parent
1d66f89032
commit
3624953700
@ -177,14 +177,14 @@ int fallin_demo(struct notcurses* nc){
|
|||||||
ncplane_erase(stdn);
|
ncplane_erase(stdn);
|
||||||
#ifdef USE_MULTIMEDIA
|
#ifdef USE_MULTIMEDIA
|
||||||
#ifndef DFSG_BUILD
|
#ifndef DFSG_BUILD
|
||||||
nc_err_e err = 0;
|
nc_err_e err = NCERR_SUCCESS;
|
||||||
char* path = find_data("lamepatents.jpg");
|
char* path = find_data("lamepatents.jpg");
|
||||||
struct ncvisual* ncv = ncplane_visual_open(stdn, path, &err);
|
struct ncvisual* ncv = ncplane_visual_open(stdn, path, &err);
|
||||||
free(path);
|
free(path);
|
||||||
if(ncv == NULL){
|
if(ncv == NULL){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if((err = ncvisual_decode(ncv)) == NCERR_SUCCESS){
|
if((err = ncvisual_decode(ncv)) != NCERR_SUCCESS){
|
||||||
ncvisual_destroy(ncv);
|
ncvisual_destroy(ncv);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user