Fixing bold fonts in reverse mode.
Christoph Lohmann 20h@r-36.net
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
st.c
→
st.c
@@ -2398,9 +2398,6 @@ XftColor *fg = &dc.xft_col[base.fg], *bg = &dc.xft_col[base.bg],
*temp, revfg, revbg; XRenderColor colfg, colbg; - if(base.mode & ATTR_REVERSE) - temp = fg, fg = bg, bg = temp; - if(base.mode & ATTR_BOLD) { if(BETWEEN(base.fg, 0, 7)) { /* basic system colors */@@ -2449,6 +2446,9 @@ XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colbg, &revbg);
bg = &revbg; } } + + if(base.mode & ATTR_REVERSE) + temp = fg, fg = bg, bg = temp; XftTextExtentsUtf8(xw.dpy, font->xft_set, (FcChar8 *)s, bytelen, &extents);