diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2017-01-02 22:42:44 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2017-01-02 22:42:44 +0000 |
commit | 500e758260355fec650c55e9235de7a721ca5761 (patch) | |
tree | 3b9620186b9608d93c9ab89ad584e4f2b76094eb /lhist_scr.c | |
parent | 7ca6b0f4a7eea4cd8fc40a3fd60c8d616f31220a (diff) | |
parent | 5744c3a0214950433c3a4375798c1c8eba1b398c (diff) | |
download | wavemon-500e758260355fec650c55e9235de7a721ca5761.tar.gz |
Merge tag 'upstream/0.8.1'
Upstream version 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); } |