Browse Source

Revert "Green-on-red title colours for Christmas release"

This reverts commit b28b931db8c8a867fab095f935fe9b43db437897.
Luke Dashjr 12 years ago
parent
commit
0569936439
1 changed files with 2 additions and 13 deletions
  1. 2 13
      miner.c

+ 2 - 13
miner.c

@@ -307,7 +307,6 @@ bool curses_active;
 const
 #endif
 short default_bgcolor = COLOR_BLACK;
-static int attr_title = A_BOLD;
 #endif
 
 static
@@ -3390,7 +3389,7 @@ static void curses_print_status(const int ts)
 
 	efficiency = total_bytes_xfer ? total_diff_accepted * 2048. / total_bytes_xfer : 0.0;
 
-	wattron(statuswin, attr_title);
+	wattron(statuswin, A_BOLD);
 	cg_mvwprintw(statuswin, 0, 0, " " PACKAGE " version " VERSION " - Started: %s", datestamp);
 	timer_set_now(&now);
 	{
@@ -3411,15 +3410,7 @@ static void curses_print_status(const int ts)
 			, d.rem
 		);
 	}
-	{
-		// Spaces until end of line, using attr_title (not clear)
-		int x, maxx;
-		int __maybe_unused y;
-		getmaxyx(statuswin, y, maxx);
-		getyx(statuswin, y, x);
-		cg_wprintw(statuswin, "%*s", maxx - x, "");
-	}
-	wattroff(statuswin, attr_title);
+	wattroff(statuswin, A_BOLD);
 	
 	wattron(statuswin, menu_attr);
 	cg_mvwprintw(statuswin, 1, 0, " [M]anage devices [P]ool management [S]ettings [D]isplay options  [H]elp [Q]uit ");
@@ -10094,8 +10085,6 @@ void enable_curses(void) {
 		menu_attr = COLOR_PAIR(1);
 		if (ERR != init_pair(2, COLOR_RED, default_bgcolor))
 			attr_bad |= COLOR_PAIR(2);
-		if (ERR != init_pair(3, COLOR_GREEN, COLOR_RED))
-			attr_title |= COLOR_PAIR(3);
 	}
 	keypad(mainwin, true);
 	getmaxyx(mainwin, y, x);