From 9a0e4f8facababf54cf6dcac7bf93a0e6099047e Mon Sep 17 00:00:00 2001 From: ckolivas Date: Wed, 15 Feb 2012 15:21:43 +1100 Subject: [PATCH] Move logwindow down once number of devices is known. --- cgminer.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cgminer.c b/cgminer.c index f61bf4df..596a21a2 100644 --- a/cgminer.c +++ b/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(); }