diff options
author | nick_m <mainsbridge@gmail.com> | 2014-06-09 02:50:14 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2014-06-09 02:50:14 +1000 |
commit | e495577f98ac8d4d0d429766f6b898501471db37 (patch) | |
tree | 12c72a1e7be333f02f7185b334b5864927a8126e /libs/canvas | |
parent | 7a05dde39d2c98e1317e84c19629d6a7634799e2 (diff) |
Use global clip level from prefs. Restore clip colour, \
Diffstat (limited to 'libs/canvas')
-rw-r--r-- | libs/canvas/wave_view.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/libs/canvas/wave_view.cc b/libs/canvas/wave_view.cc index 1c7e7a1922..b0c1c6dd93 100644 --- a/libs/canvas/wave_view.cc +++ b/libs/canvas/wave_view.cc @@ -460,9 +460,8 @@ WaveView::draw_image (Cairo::RefPtr<Cairo::ImageSurface>& image, PeakData* _peak */ if (_global_show_waveform_clipping) { - - set_source_rgba (context, _outline_color); - + set_source_rgba (context, _clip_color); + /* the height of the clip-indicator should be at most 7 pixels, or 5% of the height of the waveview item. */ @@ -475,25 +474,16 @@ WaveView::draw_image (Cairo::RefPtr<Cairo::ImageSurface>& image, PeakData* _peak tips[i].clip_max; if (show_top_clip) { - set_source_rgba (context, _clip_color); context->rel_line_to (0, clip_height); - set_source_rgba (context, _outline_color); - } else { - context->rel_line_to (0, 1.0); } if (_shape != WaveView::Rectified) { context->move_to (i, tips[i].bot); if (tips[i].clip_min) { - set_source_rgba (context, _clip_color); context->rel_line_to (0, -clip_height); - set_source_rgba (context, _outline_color); - } else { - context->rel_line_to (0, -1.0); } } } - context->stroke (); } |