[wiki] [sites] adjust patch to the recent split of xdraws || Nils Reuße
commit 7796eacfe6fbd9d7b4d6fe49520ea32011785ced
Author: Nils Reuße <code_AT_hxgn.net>
Date: Sat May 9 10:49:14 2015 +0200
adjust patch to the recent split of xdraws
diff --git a/st.suckless.org/patches/st-no-bold-colors.diff b/st.suckless.org/patches/st-no-bold-colors.diff
index f0df4b6..16c1841 100644
--- a/st.suckless.org/patches/st-no-bold-colors.diff
+++ b/st.suckless.org/patches/st-no-bold-colors.diff
_AT_@ -1,13 +1,13 @@
diff --git a/st.c b/st.c
-index b9d30a7..946cd0b 100644
+index c2da66b..2d4da96 100644
--- a/st.c
+++ b/st.c
-_AT_@ -3269,7 +3269,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
- * to bright system colors [8-15]
- */
- if(BETWEEN(base.fg, 0, 7) && !(base.mode & ATTR_FAINT))
-- fg = &dc.col[base.fg + 8];
-+ fg = &dc.col[base.fg];
+_AT_@ -3438,7 +3438,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
- if(base.mode & ATTR_ITALIC) {
- font = &dc.ibfont;
+ /* Change basic system colors [0-7] to bright system colors [8-15] */
+ if((base.mode & ATTR_BOLD_FAINT) == ATTR_BOLD && BETWEEN(base.fg, 0, 7))
+- fg = &dc.col[base.fg + 8];
++ fg = &dc.col[base.fg];
+
+ if(IS_SET(MODE_REVERSE)) {
+ if(fg == &dc.col[defaultfg]) {
Received on Sat May 09 2015 - 10:51:05 CEST
This archive was generated by hypermail 2.3.0
: Thu Jun 18 2015 - 17:40:20 CEST