mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 17:11:20 +01:00
More const qualifications, and mutables, for functions that draw tracks...
... The display related members that had to become mutable are probably ones that don't belong in the track classes, ultimately.
This commit is contained in:
@@ -970,7 +970,7 @@ void Ruler::Update()
|
||||
Update(NULL);
|
||||
}
|
||||
|
||||
void Ruler::Update(TimeTrack* timetrack)// Envelope *speedEnv, long minSpeed, long maxSpeed )
|
||||
void Ruler::Update(const TimeTrack* timetrack)// Envelope *speedEnv, long minSpeed, long maxSpeed )
|
||||
{
|
||||
const ZoomInfo *zoomInfo = NULL;
|
||||
if (!mLog && mOrientation == wxHORIZONTAL)
|
||||
@@ -1295,7 +1295,7 @@ void Ruler::Draw(wxDC& dc)
|
||||
Draw( dc, NULL);
|
||||
}
|
||||
|
||||
void Ruler::Draw(wxDC& dc, TimeTrack* timetrack)
|
||||
void Ruler::Draw(wxDC& dc, const TimeTrack* timetrack)
|
||||
{
|
||||
mDC = &dc;
|
||||
if( mLength <=0 )
|
||||
|
||||
Reference in New Issue
Block a user