mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +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)
|
if (!use_curses)
|
||||||
return;
|
return;
|
||||||
if (curses_active_locked()) {
|
if (curses_active_locked()) {
|
||||||
int __maybe_unused y, x;
|
int y, x;
|
||||||
|
|
||||||
getmaxyx(statuswin, y, x);
|
x = getmaxx(statuswin);
|
||||||
wresize(statuswin, logstart, x);
|
wresize(statuswin, logstart, x);
|
||||||
change_logwinsize();
|
getmaxyx(mainwin, y, x);
|
||||||
|
y -= logcursor;
|
||||||
|
wresize(logwin, y, x);
|
||||||
|
mvwin(logwin, logcursor, 0);
|
||||||
doupdate();
|
doupdate();
|
||||||
unlock_curses();
|
unlock_curses();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user