diff options
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); } |
