mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 15:49:42 +02:00
Simplify HighlightFocusedTrack
This commit is contained in:
parent
e31669f555
commit
49dd6002d3
@ -1732,13 +1732,16 @@ void TrackPanel::HighlightFocusedTrack(wxDC * dc, const wxRect & rect)
|
|||||||
dc->SetBrush(*wxTRANSPARENT_BRUSH);
|
dc->SetBrush(*wxTRANSPARENT_BRUSH);
|
||||||
|
|
||||||
AColor::TrackFocusPen(dc, 0);
|
AColor::TrackFocusPen(dc, 0);
|
||||||
dc->DrawRectangle(theRect.x - 1, theRect.y - 1, theRect.width + 2, theRect.height + 2);
|
theRect.Inflate(1);
|
||||||
|
dc->DrawRectangle(theRect);
|
||||||
|
|
||||||
AColor::TrackFocusPen(dc, 1);
|
AColor::TrackFocusPen(dc, 1);
|
||||||
dc->DrawRectangle(theRect.x - 2, theRect.y - 2, theRect.width + 4, theRect.height + 4);
|
theRect.Inflate(1);
|
||||||
|
dc->DrawRectangle(theRect);
|
||||||
|
|
||||||
AColor::TrackFocusPen(dc, 2);
|
AColor::TrackFocusPen(dc, 2);
|
||||||
dc->DrawRectangle(theRect.x - 3, theRect.y - 3, theRect.width + 6, theRect.height + 6);
|
theRect.Inflate(1);
|
||||||
|
dc->DrawRectangle(theRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackPanel::UpdateVRulers()
|
void TrackPanel::UpdateVRulers()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user