From 7bf53b98259e55be9072548d4af0001d3e48bade Mon Sep 17 00:00:00 2001 From: Roman Zippel Date: Sat, 25 Nov 2006 11:09:32 -0800 Subject: [PATCH] --- yaml --- r: 41079 b: refs/heads/master c: c154348f00834911c49aa63dfb48bd50d1a07d93 h: refs/heads/master i: 41077: f1f53f389890a8d6b65e3460d47c0d1dd4d81900 41075: e30a1a1e456eb6118a76997fee40360983acf0df 41071: feaca11e60ef81e91a1cf1e140b3c31dfe2603ad v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/lxdialog/util.c | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index ece4b2165334..feaf4f4fa588 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f12aa7045280836307e9bbdb1c676c4a94e2b3d3 +refs/heads/master: c154348f00834911c49aa63dfb48bd50d1a07d93 diff --git a/trunk/scripts/kconfig/lxdialog/util.c b/trunk/scripts/kconfig/lxdialog/util.c index ebc781b493d7..d54440fc166c 100644 --- a/trunk/scripts/kconfig/lxdialog/util.c +++ b/trunk/scripts/kconfig/lxdialog/util.c @@ -221,16 +221,14 @@ static void init_dialog_colors(void) */ static void color_setup(const char *theme) { - if (set_theme(theme)) { - if (has_colors()) { /* Terminal supports color? */ - start_color(); - init_dialog_colors(); - } - } - else - { + int use_color; + + use_color = set_theme(theme); + if (use_color && has_colors()) { + start_color(); + init_dialog_colors(); + } else set_mono_theme(); - } } /*