mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
NULL as color names - this works even if COLORFGBG is unset. Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
This commit is contained in:
parent
d9713d6233
commit
6c24b699cd
@ -1,5 +1,9 @@
|
||||
2001-05-29 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* color.c (init_colors) [HAVE_SLANG]: Use "default" instead of
|
||||
NULL as color names - this works even if COLORFGBG is unset.
|
||||
Don't check HAS_DIRECT_COLOR_ACCESS - it's now meaningless.
|
||||
|
||||
* color.h: Define DEFAULT_COLOR_INDEX and DEFAULT_COLOR in the
|
||||
same way regardless of HAVE_SLANG.
|
||||
* color.c (init_colors) [USE_NCURSES]: Initialize the default
|
||||
|
@ -294,7 +294,7 @@ void init_colors (void)
|
||||
#endif
|
||||
|
||||
if (use_colors) {
|
||||
#if defined HAVE_SLANG && !defined(HAS_DIRECT_COLOR_ACCESS)
|
||||
#ifdef HAVE_SLANG
|
||||
/*
|
||||
* We are relying on undocumented feature of
|
||||
* S-Lang to make COLOR_PAIR(DEFAULT_COLOR_INDEX)
|
||||
@ -302,8 +302,8 @@ void init_colors (void)
|
||||
* Hopefully, future versions of S-Lang will
|
||||
* document this feature.
|
||||
*/
|
||||
SLtt_set_color (DEFAULT_COLOR_INDEX, NULL, NULL, NULL);
|
||||
#elif USE_NCURSES
|
||||
SLtt_set_color (DEFAULT_COLOR_INDEX, NULL, "default", "default");
|
||||
#elif defined(USE_NCURSES)
|
||||
/* Always white on black */
|
||||
init_pair(DEFAULT_COLOR_INDEX, COLOR_WHITE, COLOR_BLACK);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user