mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
xray: allow video to show through (blend bg)
This commit is contained in:
parent
9d9caf28cd
commit
c55e4bb7bf
@ -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);
|
||||||
|
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user