aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-11-03 13:43:20 +0100
committerChristoph Lohmann <20h@r-36.net>2012-11-03 13:43:20 +0100
commitf8db65439a705f5e94c7a130ac44689e050e5654 (patch)
treef60098cf165a9a68b4ba1be132deec861c4cfdc8 /st.c
parent76a8e5f72b542f230d7248c09efe202a12bc3771 (diff)
downloadst-f8db65439a705f5e94c7a130ac44689e050e5654.tar.gz
st-f8db65439a705f5e94c7a130ac44689e050e5654.tar.bz2
Fixing bold fonts in reverse mode.
Diffstat (limited to 'st.c')
-rw-r--r--st.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/st.c b/st.c
index bfbe799..578c7ee 100644
--- a/st.c
+++ b/st.c
@@ -2398,9 +2398,6 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
*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 */
@@ -2450,6 +2447,9 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
}
}
+ if(base.mode & ATTR_REVERSE)
+ temp = fg, fg = bg, bg = temp;
+
XftTextExtentsUtf8(xw.dpy, font->xft_set, (FcChar8 *)s, bytelen,
&extents);
width = extents.xOff;