ncmixer

ncurses audio mixer for DJ'ing
git clone git://git.2f30.org/ncmixer
Log | Files | Refs | README | LICENSE

commit 666a9b23cc8f90f925f8f559e4eae338ed7467a6
parent f5916e03b312b27b595d088d3bd7e0a730c2b47e
Author: lostd <lostd@2f30.org>
Date:   Sat, 11 Jun 2016 10:35:29 +0100

Call draw() first thing in the poll loop

Diffstat:
Mncmixer.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ncmixer.c b/ncmixer.c @@ -392,13 +392,14 @@ loop(void) pfd[inputs[1].listenfd].events = POLLIN; for (;;) { + draw(); + nready = poll(pfd, LEN(pfd), 40); if (nready == -1) { if (errno != EINTR) printerr(1, "poll"); /* force refresh to update COLS on window resize */ refresh(); - draw(); continue; } @@ -535,7 +536,6 @@ main(int argc, char *argv[]) #endif nuke_fds(); curses_init(); - draw(); loop(); curses_exit(); return 0;