zoo: fix reference to loaded file, use find_data()

pull/852/head
nick black 4 years ago
parent 3d6fad1477
commit b0c1a0ae18
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -125,7 +125,9 @@ draw_background(struct notcurses* nc){
if(notcurses_canopen_images(nc)){
struct ncplane* n = notcurses_stdplane(nc);
nc_err_e err;
struct ncvisual* ncv = ncvisual_from_file("../data/changes.jpg", &err);
char* path = find_data("changes.jpg");
struct ncvisual* ncv = ncvisual_from_file(path, &err);
free(path);
if(!ncv){
return -1;
}

Loading…
Cancel
Save