mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
render: solving for TRANSPARENT -> default #988
This commit is contained in:
parent
1aeb6fdb77
commit
3c37bc9d14
@ -188,6 +188,12 @@ highcontrast(uint32_t bchannel){
|
|||||||
// against the real background.
|
// against the real background.
|
||||||
static inline void
|
static inline void
|
||||||
lock_in_highcontrast(cell* targc, struct crender* crender){
|
lock_in_highcontrast(cell* targc, struct crender* crender){
|
||||||
|
if(cell_fg_alpha(targc) == CELL_ALPHA_TRANSPARENT){
|
||||||
|
cell_set_fg_default(targc);
|
||||||
|
}
|
||||||
|
if(cell_bg_alpha(targc) == CELL_ALPHA_TRANSPARENT){
|
||||||
|
cell_set_bg_default(targc);
|
||||||
|
}
|
||||||
if(crender->highcontrast){
|
if(crender->highcontrast){
|
||||||
// highcontrast weighs the original at 1/4 and the contrast at 3/4
|
// highcontrast weighs the original at 1/4 and the contrast at 3/4
|
||||||
if(!cell_fg_default_p(targc)){
|
if(!cell_fg_default_p(targc)){
|
||||||
|
Loading…
Reference in New Issue
Block a user