mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-02 06:08:44 +01:00
Stroke clip edges in spectrum views too, improving split appearance
This commit is contained in:
@@ -15,6 +15,7 @@ Paul Licameli split from TrackPanel.cpp
|
||||
#include <numeric>
|
||||
#include <wx/graphics.h>
|
||||
|
||||
#include "../../../../AColor.h"
|
||||
#include "../../../../WaveClip.h"
|
||||
#include "../../../../WaveTrack.h"
|
||||
|
||||
@@ -909,6 +910,22 @@ ClipParameters::ClipParameters
|
||||
}
|
||||
}
|
||||
|
||||
void ClipParameters::DrawClipEdges( wxDC &dc, const wxRect &rect ) const
|
||||
{
|
||||
// Draw clip edges
|
||||
dc.SetPen(*wxGREY_PEN);
|
||||
if (tpre < 0) {
|
||||
AColor::Line(dc,
|
||||
mid.x - 1, mid.y,
|
||||
mid.x - 1, mid.y + rect.height);
|
||||
}
|
||||
if (tpost > t1) {
|
||||
AColor::Line(dc,
|
||||
mid.x + mid.width, mid.y,
|
||||
mid.x + mid.width, mid.y + rect.height);
|
||||
}
|
||||
}
|
||||
|
||||
void WaveTrackView::Reparent( const std::shared_ptr<Track> &parent )
|
||||
{
|
||||
// BuildSubViews(); // not really needed
|
||||
|
||||
Reference in New Issue
Block a user