ncmixer

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

commit 1dbad1ae29c1aaa1faecce0d77d8dc65f27510f3
parent 8e250b1f744d40b99badf2144a9ef264448bedf8
Author: lostd <lostd@2f30.org>
Date:   Sat, 11 Jun 2016 10:45:50 +0100

Simplify logic by just calling erase()

Diffstat:
Mncmixer.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/ncmixer.c b/ncmixer.c @@ -309,7 +309,6 @@ draw_status(void) } move(getcury(stdscr), 2); - clrtoeol(); printw("[CH0:%c] [MON:%c]", inputs[0].clifd != -1 ? '*' : ' ', inputs[0].monitor != 0 ? '*' : ' '); @@ -337,15 +336,12 @@ draw_xfader(void) else pos = center + ceil((len / 2) * fabsf(xfpos)); - clrtoeol(); move(getcury(stdscr), center - strlen("[step: 0.000000") / 2); printw("step: %0.6f\n", step); - clrtoeol(); move(getcury(stdscr), center - strlen("[pos: +0.000000") / 2); printw("pos: %+0.6f\n", xfpos); printw("\n"); - clrtoeol(); move(getcury(stdscr), start); for (i = 0; i < len; i++) printw("-"); @@ -363,7 +359,7 @@ draw_xfader(void) void draw(void) { - move(0, 0); + erase(); draw_status(); draw_xfader(); refresh();