This commit is contained in:
nick black 2021-08-19 18:08:15 -04:00
parent 34ece28702
commit 7b13576dce
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1586,7 +1586,7 @@ int ncdirect_set_bg_rgb(ncdirect* nc, unsigned rgb){
fbuf_free(&f); fbuf_free(&f);
return -1; return -1;
} }
if(fbuf_finalize(f, nc->ttyfp) < 0){ if(fbuf_finalize(&f, nc->ttyfp) < 0){
return -1; return -1;
} }
ncchannels_set_bg_rgb(&nc->channels, rgb); ncchannels_set_bg_rgb(&nc->channels, rgb);
@ -1609,7 +1609,7 @@ int ncdirect_set_fg_rgb(ncdirect* nc, unsigned rgb){
fbuf_free(&f); fbuf_free(&f);
return -1; return -1;
} }
if(fbuf_finalize(f, nc->ttyfp) < 0){ if(fbuf_finalize(&f, nc->ttyfp) < 0){
return -1; return -1;
} }
ncchannels_set_fg_rgb(&nc->channels, rgb); ncchannels_set_fg_rgb(&nc->channels, rgb);