From 3c37bc9d1439aaf9ab5de521bfae9015985d7fc6 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 2 Sep 2020 17:18:13 -0400 Subject: [PATCH] render: solving for TRANSPARENT -> default #988 --- src/lib/render.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/render.c b/src/lib/render.c index db237b42c..6374ffc85 100644 --- a/src/lib/render.c +++ b/src/lib/render.c @@ -188,6 +188,12 @@ highcontrast(uint32_t bchannel){ // against the real background. static inline void 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){ // highcontrast weighs the original at 1/4 and the contrast at 3/4 if(!cell_fg_default_p(targc)){