diff options
author | Michael Jennings <mej@kainx.org> | 2005-04-26 18:40:14 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2005-04-26 18:40:14 +0000 |
commit | 250501f71403b95d2f1a05a93cf41b2c13344716 (patch) | |
tree | 1ad083c340101bd84ea226d1aff3d927556046eb | |
parent | 731630f83afecb9efbbe57eaa35eb42ba214f8b4 (diff) | |
download | eterm-250501f71403b95d2f1a05a93cf41b2c13344716.tar.gz |
Tue Apr 26 14:38:20 2005 Michael Jennings (mej)
Patch from Bryan Kadzban <bryan@kdzbn.homelinux.net> to fix unsetting
of bold/blink attribute.
----------------------------------------------------------------------
SVN revision: 14384
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/screen.c | 13 |
2 files changed, 18 insertions, 0 deletions
@@ -5362,3 +5362,8 @@ Tue Apr 26 13:40:54 2005 Michael Jennings (mej) Patch from Tres Melton <tres@mindspring.com> to optimize 24-bit and 32-bit non-MMX shading routines. ---------------------------------------------------------------------- +Tue Apr 26 14:38:20 2005 Michael Jennings (mej) + +Patch from Bryan Kadzban <bryan@kdzbn.homelinux.net> to fix unsetting +of bold/blink attribute. +---------------------------------------------------------------------- diff --git a/src/screen.c b/src/screen.c index 445b180..f5dfa59 100644 --- a/src/screen.c +++ b/src/screen.c @@ -504,6 +504,19 @@ scr_color(unsigned int color, unsigned int Intensity) } break; } + } else if (!(rstyle & Intensity) && ((int) color >= minBright) && (color <= maxBright)) { + switch (Intensity) { + case RS_Bold: + if (BITFIELD_IS_SET(vt_options, VT_OPTIONS_BOLD_BRIGHTENS_FOREGROUND)) { + color -= (minBright - minColor); + } + break; + case RS_Blink: + if (BITFIELD_IS_SET(vt_options, VT_OPTIONS_BLINK_BRIGHTENS_BACKGROUND)) { + color -= (minBright - minColor); + } + break; + } } } } |