Browse Source

Move logwindow down once number of devices is known.

ckolivas 14 years ago
parent
commit
9a0e4f8fac
1 changed files with 6 additions and 3 deletions
  1. 6 3
      cgminer.c

+ 6 - 3
cgminer.c

@@ -1278,11 +1278,14 @@ static void check_winsizes(void)
 	if (!use_curses)
 		return;
 	if (curses_active_locked()) {
-		int __maybe_unused y, x;
+		int y, x;
 
-		getmaxyx(statuswin, y, x);
+		x = getmaxx(statuswin);
 		wresize(statuswin, logstart, x);
-		change_logwinsize();
+		getmaxyx(mainwin, y, x);
+		y -= logcursor;
+		wresize(logwin, y, x);
+		mvwin(logwin, logcursor, 0);
 		doupdate();
 		unlock_curses();
 	}