From 1c211c5f4174b9a763a5e9c3ba90f31a09070d76 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 17 Feb 2012 22:55:33 +1100 Subject: [PATCH] Plain refresh() does not give reliably screen updates so get rid of all uses of it. --- cgminer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cgminer.c b/cgminer.c index 596a21a2..2ffa1328 100644 --- a/cgminer.c +++ b/cgminer.c @@ -1327,10 +1327,7 @@ void log_curses(int prio, const char *f, va_list ap) if (curses_active_locked()) { if (!opt_loginput || high_prio) { vw_printw(logwin, f, ap); - if (high_prio) - refresh(); - else - wrefresh(logwin); + wrefresh(logwin); } unlock_curses(); } else @@ -1668,7 +1665,6 @@ static void disable_curses(void) delwin(statuswin); delwin(mainwin); endwin(); - refresh(); #ifdef WIN32 // Move the cursor to after curses output. HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);