From: Benno Fünfstück Date: Tue, 26 Dec 2017 15:23:24 +0000 (+0100) Subject: Fix color with FAINT attribute X-Git-Url: https://git.danieliu.xyz/?p=st.git;a=commitdiff_plain;h=1f24bde82b19912c080fbb4a0b153a248cd6c6ea Fix color with FAINT attribute The alpha value needs to be initialized as well. --- diff --git a/x.c b/x.c index 474d73b..c484dfc 100644 --- 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; }