---
x.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/x.c b/x.c
index c6956ad..3d1b877 100644
--- a/x.c
+++ b/x.c
_AT_@ -1205,12 +1205,6 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
}
}
- if (base.mode & ATTR_REVERSE) {
- temp = fg;
- fg = bg;
- bg = temp;
- }
-
if ((base.mode & ATTR_BOLD_FAINT) == ATTR_FAINT) {
colfg.red = fg->color.red / 2;
colfg.green = fg->color.green / 2;
_AT_@ -1220,6 +1214,13 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
fg = &revfg;
}
+
+ if (base.mode & ATTR_REVERSE) {
+ temp = fg;
+ fg = bg;
+ bg = temp;
+ }
+
if (base.mode & ATTR_BLINK && term.mode & MODE_BLINK)
fg = bg;
--
2.15.1
Received on Tue Dec 26 2017 - 16:38:27 CET
This archive was generated by hypermail 2.3.0 : Tue Dec 26 2017 - 16:48:24 CET