]> git.armaanb.net Git - st.git/commitdiff
Fix color with FAINT attribute
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>
Tue, 26 Dec 2017 15:23:24 +0000 (16:23 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 26 Dec 2017 21:54:44 +0000 (22:54 +0100)
The alpha value needs to be initialized as well.

x.c

diff --git a/x.c b/x.c
index 474d73b3c9acd18992cc9a16fe4eeb05d944e39e..c484dfcf8a5c258303e850b546b55060f5a7cb68 100644 (file)
--- a/x.c
+++ b/x.c
@@ -1193,6 +1193,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
                colfg.red = fg->color.red / 2;
                colfg.green = fg->color.green / 2;
                colfg.blue = fg->color.blue / 2;
+               colfg.alpha = fg->color.alpha;
                XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colfg, &revfg);
                fg = &revfg;
        }