mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 23:25:59 +01:00
Fix color with FAINT attribute
The alpha value needs to be initialized as well.
This commit is contained in:
parent
e829e13bb1
commit
1f24bde82b
1 changed files with 1 additions and 0 deletions
1
x.c
1
x.c
|
@ -1193,6 +1193,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
|
||||||
colfg.red = fg->color.red / 2;
|
colfg.red = fg->color.red / 2;
|
||||||
colfg.green = fg->color.green / 2;
|
colfg.green = fg->color.green / 2;
|
||||||
colfg.blue = fg->color.blue / 2;
|
colfg.blue = fg->color.blue / 2;
|
||||||
|
colfg.alpha = fg->color.alpha;
|
||||||
XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colfg, &revfg);
|
XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colfg, &revfg);
|
||||||
fg = &revfg;
|
fg = &revfg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue