1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Only adjust cursor positions with curses locked.

This commit is contained in:
Con Kolivas 2013-06-03 16:01:20 +10:00
parent 12045aae55
commit 514491bd0e

View File

@ -2186,12 +2186,15 @@ static void check_winsizes(void)
static void switch_compact(void)
{
if (opt_compact) {
logstart = devcursor + 1;
logcursor = logstart + 1;
} else {
logstart = devcursor + total_devices + 1;
logcursor = logstart + 1;
if (curses_active_locked()) {
if (opt_compact) {
logstart = devcursor + 1;
logcursor = logstart + 1;
} else {
logstart = devcursor + total_devices + 1;
logcursor = logstart + 1;
}
unlock_curses();
}
check_winsizes();
}