diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-12 13:01:58 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-12 13:01:58 +0000 |
| commit | ee687726561e2520459c4cb4876700db2de5096f (patch) | |
| tree | 52fd034de672877a1d6f5589423989b6a1f886bb /rotord/src/nodes_drawing.h | |
| parent | 33ffa11a2661b82b8d300a3df731de812d590153 (diff) | |
fix for audio viz fill
Diffstat (limited to 'rotord/src/nodes_drawing.h')
| -rw-r--r-- | rotord/src/nodes_drawing.h | 8 |
1 files changed, 4 insertions, 4 deletions
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;i<frame.w;i++){ cairo_line_to(cr,i,(((int16_t)frame.audio->samples[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;i<frame.w;i++){ cairo_line_to(cr,i,(((int16_t)frame.audio->samples[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); } |
