1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 09:39:42 +02:00

Remove argument of DrawOutside that is no longer used...

... This only was a source of confusions.
This commit is contained in:
Paul Licameli 2017-06-05 18:16:55 -04:00
parent 31fcfe743d
commit 52017948d1
2 changed files with 7 additions and 9 deletions

View File

@ -7294,16 +7294,16 @@ void TrackPanel::DrawEverythingElse(wxDC * dc,
// (and thus would have been skipped by VisibleTrackIterator) we need to
// draw that track's border instead.
Track *borderTrack = t;
wxRect borderRect = rect, borderTrackRect = trackRect;
wxRect borderRect = rect;
if (l && !t->GetLinked() && trackRect.y < 0)
{
borderTrack = l;
borderTrackRect.y = l->GetY() - mViewInfo->vpos;
borderTrackRect.height = l->GetHeight();
borderRect = trackRect;
borderRect.y = l->GetY() - mViewInfo->vpos;
borderRect.height = l->GetHeight();
borderRect = borderTrackRect;
borderRect.height += t->GetHeight();
}
@ -7311,7 +7311,7 @@ void TrackPanel::DrawEverythingElse(wxDC * dc,
if (mAx->IsFocused(t)) {
focusRect = borderRect;
}
DrawOutside(borderTrack, dc, borderRect, borderTrackRect);
DrawOutside(borderTrack, dc, borderRect);
}
// Believe it or not, we can speed up redrawing if we don't
@ -7420,8 +7420,7 @@ void TrackPanel::DrawZooming(wxDC * dc, const wxRect & clip)
dc->DrawRectangle(rect);
}
void TrackPanel::DrawOutside(Track * t, wxDC * dc, const wxRect & rec,
const wxRect & trackRect)
void TrackPanel::DrawOutside(Track * t, wxDC * dc, const wxRect & rec)
{
wxRect rect = rec;
int labelw = GetLabelWidth();

View File

@ -584,8 +584,7 @@ protected:
virtual void DrawEverythingElse(wxDC *dc, const wxRegion & region,
const wxRect & clip);
virtual void DrawOutside(Track *t, wxDC *dc, const wxRect & rec,
const wxRect &trackRect);
virtual void DrawOutside(Track *t, wxDC *dc, const wxRect & rec);
virtual void DrawZooming(wxDC* dc, const wxRect & clip);
virtual void HighlightFocusedTrack (wxDC* dc, const wxRect &rect);