xray: allow video to show through (blend bg)

This commit is contained in:
nick black 2020-06-03 03:10:41 -04:00
parent 9d9caf28cd
commit c55e4bb7bf
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,7 @@ make_slider(struct notcurses* nc, int dimy, int dimx){
int r = 0x5f; int r = 0x5f;
int g = 0xaf; int g = 0xaf;
int b = 0x84; int b = 0x84;
ncplane_set_bg_alpha(n, CELL_ALPHA_BLEND); ncplane_set_bg_alpha(n, CELL_ALPHA_TRANSPARENT);
for(int x = 0 ; x < REPS ; ++x){ for(int x = 0 ; x < REPS ; ++x){
for(size_t l = 0 ; l < sizeof(leg) / sizeof(*leg) ; ++l){ for(size_t l = 0 ; l < sizeof(leg) / sizeof(*leg) ; ++l){
ncplane_set_fg_rgb_clipped(n, r + 0x8 * l, g + 0x8 * l, b + 0x8 * l); ncplane_set_fg_rgb_clipped(n, r + 0x8 * l, g + 0x8 * l, b + 0x8 * l);

View File

@ -140,6 +140,8 @@ cellcmp_and_dupfar(egcpool* dampool, cell* damcell,
return 0; // simple match return 0; // simple match
} }
}else{ }else{
assert(srcplane);
assert(srcplane->pool.pool);
const char* damegc = egcpool_extended_gcluster(dampool, damcell); const char* damegc = egcpool_extended_gcluster(dampool, damcell);
const char* srcegc = extended_gcluster(srcplane, srccell); const char* srcegc = extended_gcluster(srcplane, srccell);
if(strcmp(damegc, srcegc) == 0){ if(strcmp(damegc, srcegc) == 0){