diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-12-16 13:19:08 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-12-16 13:19:08 +0000 |
commit | a435749dc2b43186c2ec8920c7f18d5045ffb1a8 (patch) | |
tree | 956b8c66d8fb5158d6d58e5e2134b03544cbb260 /winsup/cygwin | |
parent | 2ef89b220a96cca8c1c92e434548a0a9cd0e0567 (diff) | |
download | newlib-a435749dc2b43186c2ec8920c7f18d5045ffb1a8.zip newlib-a435749dc2b43186c2ec8920c7f18d5045ffb1a8.tar.gz newlib-a435749dc2b43186c2ec8920c7f18d5045ffb1a8.tar.bz2 |
* fhandler_console.cc (get_win32_attr): Avoid inappropriate intensity
interchanging that used to render reverse output unreadable when
non-reversed text is bright.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d48abfb..3d1dba0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2004-12-16 Thomas Wolff <towo@computer.org> + + * fhandler_console.cc (get_win32_attr): Avoid inappropriate intensity + interchanging that used to render reverse output unreadable when + non-reversed text is bright. + 2004-12-15 Corinna Vinschen <corinna@vinschen.de> * cygwin.din: Add utmpx symbols. diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 242366f..418f986 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -938,11 +938,11 @@ fhandler_console::get_win32_attr () win_fg = (win_bg & BACKGROUND_RED ? FOREGROUND_RED : 0) | (win_bg & BACKGROUND_GREEN ? FOREGROUND_GREEN : 0) | (win_bg & BACKGROUND_BLUE ? FOREGROUND_BLUE : 0) | - (win_fg & FOREGROUND_INTENSITY); + (win_bg & BACKGROUND_INTENSITY ? FOREGROUND_INTENSITY : 0); win_bg = (save_fg & FOREGROUND_RED ? BACKGROUND_RED : 0) | (save_fg & FOREGROUND_GREEN ? BACKGROUND_GREEN : 0) | (save_fg & FOREGROUND_BLUE ? BACKGROUND_BLUE : 0) | - (win_bg & BACKGROUND_INTENSITY); + (save_fg & FOREGROUND_INTENSITY ? BACKGROUND_INTENSITY : 0); } if (dev_state->underline) win_fg = dev_state->underline_color; |