[ncplane_pulse] replace explicit test with notcurses_canfade()

pull/2303/head
nick black 3 years ago
parent 2f8d51dd8b
commit a8b9dd4af7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -301,8 +301,7 @@ int ncplane_fadein(ncplane* n, const struct timespec* ts, fadecb fader, void* cu
int ncplane_pulse(ncplane* n, const struct timespec* ts, fadecb fader, void* curry){
ncfadectx pp;
int ret;
if(!ncplane_notcurses(n)->tcache.caps.rgb &&
!ncplane_notcurses(n)->tcache.caps.can_change_colors){ // terminal can't fade
if(!notcurses_canfade(ncplane_notcurses(n))){
return -1;
}
if(alloc_ncplane_palette(n, &pp, ts)){

Loading…
Cancel
Save