pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e829e13
)
Fix color with FAINT attribute
author
Benno Fünfstück
<benno.fuenfstueck@gmail.com>
Tue, 26 Dec 2017 15:23:24 +0000
(16:23 +0100)
committer
Hiltjo 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
patch
|
blob
|
history
diff --git
a/x.c
b/x.c
index
474d73b
..
c484dfc
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;
}