diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2017-01-02 22:42:43 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2017-01-02 22:42:43 +0000 |
commit | 5744c3a0214950433c3a4375798c1c8eba1b398c (patch) | |
tree | 81c2e9edf2941e9144a7d9e4001c3002d32a754e /lhist_scr.c | |
parent | 0b0aac6ce21bcb38d7e03dc2b3ff419861476a24 (diff) | |
download | wavemon-5744c3a0214950433c3a4375798c1c8eba1b398c.tar.gz |
New upstream version 0.8.1upstream/0.8.1
Diffstat (limited to '')
-rw-r--r-- | lhist_scr.c | 21 |
1 files changed, 8 insertions, 13 deletions
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); } |