Introduction
Introduction Statistics Contact Development Disclaimer Help
tFixing bold fonts in reverse mode. - st - [fork] customized build of st, the s…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit f8db65439a705f5e94c7a130ac44689e050e5654
parent 76a8e5f72b542f230d7248c09efe202a12bc3771
Author: Christoph Lohmann <[email protected]>
Date: Sat, 3 Nov 2012 13:43:20 +0100
Fixing bold fonts in reverse mode.
Diffstat:
M st.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -2398,9 +2398,6 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, i…
*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 */
t@@ -2450,6 +2447,9 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, i…
}
}
+ if(base.mode & ATTR_REVERSE)
+ temp = fg, fg = bg, bg = temp;
+
XftTextExtentsUtf8(xw.dpy, font->xft_set, (FcChar8 *)s, bytelen,
&extents);
width = extents.xOff;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.