Browse Source

Only adjust cursor positions with curses locked.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
514491bd0e
  1. 3
      cgminer.c

3
cgminer.c

@ -2186,6 +2186,7 @@ static void check_winsizes(void) @@ -2186,6 +2186,7 @@ static void check_winsizes(void)
static void switch_compact(void)
{
if (curses_active_locked()) {
if (opt_compact) {
logstart = devcursor + 1;
logcursor = logstart + 1;
@ -2193,6 +2194,8 @@ static void switch_compact(void) @@ -2193,6 +2194,8 @@ static void switch_compact(void)
logstart = devcursor + total_devices + 1;
logcursor = logstart + 1;
}
unlock_curses();
}
check_winsizes();
}

Loading…
Cancel
Save