ncvisual_render: replace fprintf with logwarn()

pull/1328/head
nick black 4 years ago
parent 2507a1712b
commit b10588e97f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -423,7 +423,7 @@ auto ncvisual_from_bgra(const void* bgra, int rows, int rowstride,
auto ncvisual_render(notcurses* nc, ncvisual* ncv, auto ncvisual_render(notcurses* nc, ncvisual* ncv,
const struct ncvisual_options* vopts) -> ncplane* { const struct ncvisual_options* vopts) -> ncplane* {
if(vopts && vopts->flags > NCVISUAL_OPTION_BLEND){ if(vopts && vopts->flags > NCVISUAL_OPTION_BLEND){
fprintf(stderr, "Warning: unknown ncvisual options %016jx\n", (uintmax_t)vopts->flags); logwarn(nc, "Warning: unknown ncvisual options %016jx\n", (uintmax_t)vopts->flags);
} }
int lenx = vopts ? vopts->lenx : 0; int lenx = vopts ? vopts->lenx : 0;
int leny = vopts ? vopts->leny : 0; int leny = vopts ? vopts->leny : 0;

Loading…
Cancel
Save