sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7796eacfe6fbd9d7b4d6fe49520ea32011785ced
parent 2bbd9885fc6b4fa453ca08fb6ff4f9df78b0bd24
Author: Nils Reu├če <code@hxgn.net>
Date:   Sat,  9 May 2015 10:49:14 +0200

adjust patch to the recent split of xdraws

Diffstat:
Mst.suckless.org/patches/st-no-bold-colors.diff | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/st.suckless.org/patches/st-no-bold-colors.diff b/st.suckless.org/patches/st-no-bold-colors.diff @@ -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 -@@ -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]; +@@ -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]) {