diff options
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1189,12 +1189,6 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i | |||
1189 | } | 1189 | } |
1190 | } | 1190 | } |
1191 | 1191 | ||
1192 | if (base.mode & ATTR_REVERSE) { | ||
1193 | temp = fg; | ||
1194 | fg = bg; | ||
1195 | bg = temp; | ||
1196 | } | ||
1197 | |||
1198 | if ((base.mode & ATTR_BOLD_FAINT) == ATTR_FAINT) { | 1192 | if ((base.mode & ATTR_BOLD_FAINT) == ATTR_FAINT) { |
1199 | colfg.red = fg->color.red / 2; | 1193 | colfg.red = fg->color.red / 2; |
1200 | colfg.green = fg->color.green / 2; | 1194 | colfg.green = fg->color.green / 2; |
@@ -1203,6 +1197,13 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i | |||
1203 | fg = &revfg; | 1197 | fg = &revfg; |
1204 | } | 1198 | } |
1205 | 1199 | ||
1200 | |||
1201 | if (base.mode & ATTR_REVERSE) { | ||
1202 | temp = fg; | ||
1203 | fg = bg; | ||
1204 | bg = temp; | ||
1205 | } | ||
1206 | |||
1206 | if (base.mode & ATTR_BLINK && term.mode & MODE_BLINK) | 1207 | if (base.mode & ATTR_BLINK && term.mode & MODE_BLINK) |
1207 | fg = bg; | 1208 | fg = bg; |
1208 | 1209 | ||