diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-02 12:48:55 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-02 12:48:55 +0200 |
commit | 5ef745726659d3d9f7b3a1e7f0e7cb1f32b7d35b (patch) | |
tree | 2d01d474f102111634014809d4c278b9e61fe2f6 | |
parent | b5982e284d7560930461e3bb4a0281afd6bc0093 (diff) | |
download | st-patched-5ef745726659d3d9f7b3a1e7f0e7cb1f32b7d35b.tar.bz2 st-patched-5ef745726659d3d9f7b3a1e7f0e7cb1f32b7d35b.tar.xz st-patched-5ef745726659d3d9f7b3a1e7f0e7cb1f32b7d35b.zip |
Thanks to c00kiemon5ter. Not changing bold to bright colors seems to be the
right choice.
-rw-r--r-- | st.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2182,10 +2182,8 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { | |||
2182 | if(base.mode & ATTR_REVERSE) | 2182 | if(base.mode & ATTR_REVERSE) |
2183 | temp = fg, fg = bg, bg = temp; | 2183 | temp = fg, fg = bg, bg = temp; |
2184 | 2184 | ||
2185 | if(base.mode & ATTR_BOLD) { | 2185 | if(base.mode & ATTR_BOLD) |
2186 | fg += 8; | ||
2187 | font = &dc.bfont; | 2186 | font = &dc.bfont; |
2188 | } | ||
2189 | 2187 | ||
2190 | if(base.mode & ATTR_ITALIC) | 2188 | if(base.mode & ATTR_ITALIC) |
2191 | font = &dc.ifont; | 2189 | font = &dc.ifont; |