gui.c: Cosmetics.
authorAndre Noll <maan@systemlinux.org>
Sat, 24 Nov 2007 22:25:01 +0000 (23:25 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 24 Nov 2007 22:25:01 +0000 (23:25 +0100)
gui.c

diff --git a/gui.c b/gui.c
index f5e65c8bb900b65fc299d0a30842f192450f217a..05d7b0b9f3c49e7c3dfe16fc85e65a92af9fd206 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -649,7 +649,6 @@ static void print_stat_item(int i)
        if (!curses_active || !d.len || !c)
                return;
        tmp = make_message("%s%s%s", d.prefix, c, d.postfix);
        if (!curses_active || !d.len || !c)
                return;
        tmp = make_message("%s%s%s", d.prefix, c, d.postfix);
-//     PARA_DEBUG_LOG("%s: read: %s\n", __func__, tmp);
        wmove(top.win, d.y * top.lines / 100, d.x * COLS / 100);
        wrefresh(top.win);
        wattron(top.win, COLOR_PAIR(i + 1));
        wmove(top.win, d.y * top.lines / 100, d.x * COLS / 100);
        wrefresh(top.win);
        wattron(top.win, COLOR_PAIR(i + 1));
@@ -681,6 +680,7 @@ static void clear_all_items(void)
 static void init_colors(void)
 {
        int i;
 static void init_colors(void)
 {
        int i;
+
        if (!has_colors())
                msg_n_exit(EXIT_FAILURE, "Error: No color term\n");
        start_color();
        if (!has_colors())
                msg_n_exit(EXIT_FAILURE, "Error: No color term\n");
        start_color();