ncplane_highgradient: log errors

pull/1372/head
nick black 3 years ago
parent aa4da3f335
commit 5424dbea74
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -146,9 +146,11 @@ calc_highgradient(nccell* c, uint32_t ul, uint32_t ur, uint32_t ll,
int ncplane_highgradient(ncplane* n, uint32_t ul, uint32_t ur,
uint32_t ll, uint32_t lr, int ystop, int xstop){
if(!notcurses_canutf8(ncplane_notcurses(n))){
logerror(ncplane_notcurses(n), "Highdef gradients require UTF8\n");
return -1;
}
if(check_gradient_channel_args(ul, ur, ll, lr)){
logerror(ncplane_notcurses(n), "Invalid highdef gradient channels\n");
return -1;
}
int yoff, xoff, ymax, xmax;

Loading…
Cancel
Save