From ee687726561e2520459c4cb4876700db2de5096f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 12 Dec 2013 13:01:58 +0000 Subject: fix for audio viz fill --- rotord/src/nodes_drawing.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rotord/src/nodes_drawing.h') diff --git a/rotord/src/nodes_drawing.h b/rotord/src/nodes_drawing.h index ec70b96..5a8937f 100644 --- a/rotord/src/nodes_drawing.h +++ b/rotord/src/nodes_drawing.h @@ -258,11 +258,11 @@ namespace Rotor { //cairo_translate(cr, 0, frame.h/2); cairo_translate(cr,-frame.w/2,0); cairo_scale(cr,1.0,parameters["height"]->value); - //cairo_line_to(cr, 0, 0); + cairo_line_to(cr, 0, 0); for (int i=0;isamples[i*frame.audio->channels]+channel)*frame.h)>>16); } - //cairo_line_to(cr, frame.w/2, 0); + cairo_line_to(cr, frame.w/2, 0); cairo_close_path(cr); cairo_restore (cr); @@ -274,11 +274,11 @@ namespace Rotor { cairo_translate(cr,-frame.w/2,0); cairo_scale(cr,1.0,parameters["height"]->value); cairo_set_line_width (cr, parameters["width"]->value); - cairo_line_to(cr, 0, 0); + //cairo_line_to(cr, 0, 0); for (int i=0;isamples[i*frame.audio->channels+channel])*frame.h)>>16); } - cairo_line_to(cr, frame.w, 0); + //cairo_line_to(cr, frame.w, 0); cairo_restore (cr); cairo_stroke(cr); } -- cgit v1.2.3