[hackers] [st][PATCH] Fix color with FAINT attribute

From: Benno Fünfstück <benno.fuenfstueck_AT_gmail.com>
Date: Tue, 26 Dec 2017 16:23:24 +0100

The alpha value needs to be initialized as well.
---
 x.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/x.c b/x.c
index ef38a3f..c6956ad 100644
--- a/x.c
+++ b/x.c
_AT_@ -1215,6 +1215,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;
 	}
-- 
2.15.1
Received on Tue Dec 26 2017 - 16:23:24 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 26 2017 - 16:24:24 CET