Skip to content

Instantly share code, notes, and snippets.

@ObserverHerb
Created December 15, 2020 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ObserverHerb/28fc4af5224541005c868d9b3c382e56 to your computer and use it in GitHub Desktop.
Save ObserverHerb/28fc4af5224541005c868d9b3c382e56 to your computer and use it in GitHub Desktop.
diff --git a/src/Screen.cpp b/src/Screen.cpp
index bba16a97..1cde7131 100644
--- a/src/Screen.cpp
+++ b/src/Screen.cpp
@@ -461,8 +461,14 @@ void Screen::updateEffectiveRendition()
_effectiveBackground = _currentBackground;
}
- if ((_currentRendition & RE_BOLD) == 0 && (_currentRendition & RE_FAINT) != 0) {
+ if ((_currentRendition & RE_BOLD) != 0) {
+ if ((_currentRendition & RE_FAINT) == 0) {
+ _effectiveForeground.setIntensive();
+ }
+ } else {
+ if ((_currentRendition & RE_FAINT) != 0) {
_effectiveForeground.setFaint();
+ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment