From ae33ec638534cbd772fc5a3ca9b5c3a6fe6aa64c Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT service" Date: Tue, 3 Feb 2009 16:42:05 +0100 Subject: [PATCH] fixed #229 --- ChangeLog | 1 + src/color.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2d2164fef..b001a2c0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -85,6 +85,7 @@ 2009-02-02 Enrico Weigelt, metux ITS * vfs/extfs/iso9660.in: added iso9660 fix by cppgx (#86) + * src/color.c: added fix for transparent terminals by Robert (#229) 2009-02-01 Enrico Weigelt, metux ITS diff --git a/src/color.c b/src/color.c index cf06d46a0..f78c01077 100644 --- a/src/color.c +++ b/src/color.c @@ -309,6 +309,7 @@ void init_colors (void) if (use_colors){ start_color (); + use_default_colors (); configure_colors (); #ifndef HAVE_SLANG @@ -418,7 +419,7 @@ try_alloc_color_pair (const char *fg, const char *bg) void mc_init_pair (int index, CTYPE foreground, CTYPE background) { - init_pair (index, foreground, background); + init_pair (index, foreground, (background==0?-1:background)); if (index > max_index) max_index = index; }