Browse Source

Merge branch 'tui_income' into bfgminer

Luke Dashjr 12 years ago
parent
commit
c8cef7d279
1 changed files with 3 additions and 2 deletions
  1. 3 2
      miner.c

+ 3 - 2
miner.c

@@ -3206,12 +3206,13 @@ static int menu_attr = A_REVERSE;
 #define cg_mvwprintw(win, y, x, fmt, ...) do { \
 	char tmp42[CURBUFSIZ]; \
 	snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
-	mvwprintw(win, y, x, "%s", tmp42); \
+	wmove(win, y, x);  \
+	bfg_waddstr(win, tmp42); \
 } while (0)
 #define cg_wprintw(win, fmt, ...) do { \
 	char tmp42[CURBUFSIZ]; \
 	snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
-	wprintw(win, "%s", tmp42); \
+	bfg_waddstr(win, tmp42); \
 } while (0)
 
 /* Must be called with curses mutex lock held and curses_active */