mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
remove unused _wave_color member from waveview canvas item; use outline color for edge dots of waveforms instead of hardcoding black
This commit is contained in:
parent
b2895eaa50
commit
bb05ae05a8
2 changed files with 5 additions and 7 deletions
|
|
@ -138,7 +138,6 @@ private:
|
||||||
int _channel;
|
int _channel;
|
||||||
double _samples_per_pixel;
|
double _samples_per_pixel;
|
||||||
Coord _height;
|
Coord _height;
|
||||||
Color _wave_color;
|
|
||||||
bool _show_zero;
|
bool _show_zero;
|
||||||
Color _zero_color;
|
Color _zero_color;
|
||||||
Color _clip_color;
|
Color _clip_color;
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ WaveView::WaveView (Group* parent, boost::shared_ptr<ARDOUR::AudioRegion> region
|
||||||
, _channel (0)
|
, _channel (0)
|
||||||
, _samples_per_pixel (0)
|
, _samples_per_pixel (0)
|
||||||
, _height (64)
|
, _height (64)
|
||||||
, _wave_color (0xffffffff)
|
|
||||||
, _show_zero (false)
|
, _show_zero (false)
|
||||||
, _zero_color (0xff0000ff)
|
, _zero_color (0xff0000ff)
|
||||||
, _clip_color (0xff0000ff)
|
, _clip_color (0xff0000ff)
|
||||||
|
|
@ -351,7 +350,7 @@ WaveView::draw_image (PeakData* _peaks, int n_peaks) const
|
||||||
|
|
||||||
if (_global_show_waveform_clipping) {
|
if (_global_show_waveform_clipping) {
|
||||||
|
|
||||||
context->set_source_rgba (0, 0, 0, 1.0);
|
set_source_rgba (context, _outline_color);
|
||||||
|
|
||||||
/* the height of the clip-indicator should be at most 7 pixels,
|
/* the height of the clip-indicator should be at most 7 pixels,
|
||||||
or 5% of the height of the waveview item.
|
or 5% of the height of the waveview item.
|
||||||
|
|
@ -365,10 +364,10 @@ WaveView::draw_image (PeakData* _peaks, int n_peaks) const
|
||||||
tips[i].clip_max;
|
tips[i].clip_max;
|
||||||
|
|
||||||
if (show_top_clip) {
|
if (show_top_clip) {
|
||||||
context->set_source_rgba (1.0, 0, 0, 1.0);
|
set_source_rgba (context, _clip_color);
|
||||||
context->rel_line_to (0, clip_height);
|
context->rel_line_to (0, clip_height);
|
||||||
context->stroke ();
|
context->stroke ();
|
||||||
context->set_source_rgba (0.0, 0, 0, 1.0);
|
set_source_rgba (context, _outline_color);
|
||||||
} else {
|
} else {
|
||||||
context->rel_line_to (0, 1.0);
|
context->rel_line_to (0, 1.0);
|
||||||
context->stroke ();
|
context->stroke ();
|
||||||
|
|
@ -377,10 +376,10 @@ WaveView::draw_image (PeakData* _peaks, int n_peaks) const
|
||||||
if (_shape != WaveView::Rectified) {
|
if (_shape != WaveView::Rectified) {
|
||||||
context->move_to (i, tips[i].bot);
|
context->move_to (i, tips[i].bot);
|
||||||
if (tips[i].clip_min) {
|
if (tips[i].clip_min) {
|
||||||
context->set_source_rgba (1.0, 0, 0, 1.0);
|
set_source_rgba (context, _clip_color);
|
||||||
context->rel_line_to (0, -clip_height);
|
context->rel_line_to (0, -clip_height);
|
||||||
context->stroke ();
|
context->stroke ();
|
||||||
context->set_source_rgba (0.0, 0, 0, 1.0);
|
set_source_rgba (context, _outline_color);
|
||||||
} else {
|
} else {
|
||||||
context->rel_line_to (0, -1.0);
|
context->rel_line_to (0, -1.0);
|
||||||
context->stroke ();
|
context->stroke ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue