mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Move logwindow down once number of devices is known.
This commit is contained in:
parent
e7fdadfc8f
commit
9a0e4f8fac
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user