mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-03 02:24:35 +00:00
Plain refresh() does not give reliably screen updates so get rid of all uses of it.
This commit is contained in:
parent
86a53824b5
commit
1c211c5f41
@ -1327,10 +1327,7 @@ void log_curses(int prio, const char *f, va_list ap)
|
|||||||
if (curses_active_locked()) {
|
if (curses_active_locked()) {
|
||||||
if (!opt_loginput || high_prio) {
|
if (!opt_loginput || high_prio) {
|
||||||
vw_printw(logwin, f, ap);
|
vw_printw(logwin, f, ap);
|
||||||
if (high_prio)
|
wrefresh(logwin);
|
||||||
refresh();
|
|
||||||
else
|
|
||||||
wrefresh(logwin);
|
|
||||||
}
|
}
|
||||||
unlock_curses();
|
unlock_curses();
|
||||||
} else
|
} else
|
||||||
@ -1668,7 +1665,6 @@ static void disable_curses(void)
|
|||||||
delwin(statuswin);
|
delwin(statuswin);
|
||||||
delwin(mainwin);
|
delwin(mainwin);
|
||||||
endwin();
|
endwin();
|
||||||
refresh();
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
// Move the cursor to after curses output.
|
// Move the cursor to after curses output.
|
||||||
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user