Skip to content

Commit

Permalink
Fix color with FAINT attribute
Browse files Browse the repository at this point in the history
The alpha value needs to be initialized as well.
  • Loading branch information
bennofs authored and hiltjo committed Dec 26, 2017
1 parent e829e13 commit 1f24bde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f24bde

Please sign in to comment.