From 250501f71403b95d2f1a05a93cf41b2c13344716 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Tue, 26 Apr 2005 18:40:14 +0000 Subject: Tue Apr 26 14:38:20 2005 Michael Jennings (mej) Patch from Bryan Kadzban to fix unsetting of bold/blink attribute. ---------------------------------------------------------------------- SVN revision: 14384 --- ChangeLog | 5 +++++ src/screen.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 24863cb..f7fbaa3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5362,3 +5362,8 @@ Tue Apr 26 13:40:54 2005 Michael Jennings (mej) Patch from Tres Melton 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 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; + } } } } -- cgit v1.2.1