zoo: blend reader background

pull/844/head
nick black 4 years ago committed by Nick Black
parent 78a7b4d255
commit 5a9e2645a5

@ -259,10 +259,13 @@ reader_demo(struct notcurses* nc, pthread_t* tid, pthread_mutex_t* lock){
const int READER_COLS = 40;
const int READER_ROWS = 8;
ncreader_options nopts = {
.echannels = CHANNELS_RGB_INITIALIZER(0x20, 0, 0xe0, 0, 0, 0),
.egc = "",
.physcols = READER_COLS,
.physrows = READER_ROWS,
.egc = "",
// FIXME .flags = NCREADER_OPTION_VERSCROLL,
};
channels_set_bg_alpha(&nopts.echannels, CELL_ALPHA_BLEND);
const int x = ncplane_align(std, NCALIGN_CENTER, nopts.physcols);
if((marsh->reader = ncreader_create(std, dimy, x, &nopts)) == NULL){
free(marsh);

Loading…
Cancel
Save