From 5744c3a0214950433c3a4375798c1c8eba1b398c Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Mon, 2 Jan 2017 22:42:43 +0000 Subject: New upstream version 0.8.1 --- lhist_scr.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'lhist_scr.c') diff --git a/lhist_scr.c b/lhist_scr.c index 2595b45..55d5d6b 100644 --- a/lhist_scr.c +++ b/lhist_scr.c @@ -317,18 +317,6 @@ static void display_key(WINDOW *w_key) wrefresh(w_key); } -static void redraw_lhist(int signum) -{ - static int vcount = 1; - - sampling_do_poll(); - if (!--vcount) { - vcount = conf.slotsize; - display_lhist(); - display_key(w_key); - } -} - void scr_lhist_init(void) { w_lhist = newwin_title(0, HIST_WIN_HEIGHT, "Level histogram", true); @@ -337,13 +325,20 @@ void scr_lhist_init(void) init_extrema(&e_signal); init_extrema(&e_noise); init_extrema(&e_snr); - sampling_init(redraw_lhist); + sampling_init(); display_key(w_key); } int scr_lhist_loop(WINDOW *w_menu) { + static int vcount = 1; + + if (!--vcount) { + vcount = conf.slotsize; + display_lhist(); + display_key(w_key); + } return wgetch(w_menu); } -- cgit v1.2.3