From 8c3e9ec157e3b63f3fda7f8ba1b7a4264b88765b Mon Sep 17 00:00:00 2001 From: "alexander.pickering" Date: Tue, 16 Sep 2014 18:33:32 -0400 Subject: Added a thrid meter --- vaud.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/vaud.c b/vaud.c index 87a71ae..ee1f178 100644 --- a/vaud.c +++ b/vaud.c @@ -248,32 +248,27 @@ void display_rmeter() /*Figure out how which nodes we can safely get*/ int space = ((unsigned int) dframes) / width; - //mvprintw(10,10,"Space is %i",space); - //refresh(); if(space > 0) { for(i=1;i((1-samp)*height);j--) { if(COLORFUL) attron(COLOR_PAIR(2)); - mvprintw((height/2)+j,i,BAR); - mvprintw((height/2)-j,i,BAR); + mvprintw(j,i,BAR); if(COLORFUL) attroff(COLOR_PAIR(2)); } - for(j=samp*(height/2)+1;j<(height/2);j++) + for(j=((1-samp)*height-2);j>0;j--) { if(COLORFUL) attron(COLOR_PAIR(3)); - mvprintw((height/2)+j,i,BLANK); - mvprintw((height/2)-j,i,BLANK); + mvprintw(j,i,BLANK); if(COLORFUL) attroff(COLOR_PAIR(3)); } -- cgit v1.2.3-70-g09d2