Enrico Weigelt, metux IT service 16 years ago
parent
commit
ae33ec6385
2 changed files with 3 additions and 1 deletions
  1. 1 0
      ChangeLog
  2. 2 1
      src/color.c

+ 1 - 0
ChangeLog

@@ -85,6 +85,7 @@
 2009-02-02 Enrico Weigelt, metux ITS <weigelt@metux.de>
 
 	* 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 <weigelt@metux.de>
 

+ 2 - 1
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;
 }