1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

Heavyweight version of SelectedRegion stored in ViewInfo emits events

This commit is contained in:
Paul Licameli
2018-02-16 18:07:59 -05:00
parent 43af7b3265
commit 33f3d4b82d
16 changed files with 240 additions and 38 deletions

View File

@@ -851,7 +851,8 @@ void TrackPanel::DrawTracks(wxDC * dc)
const wxRect clip = GetRect();
mTrackArtist->pSelectedRegion = &mViewInfo->selectedRegion;
const SelectedRegion &sr = mViewInfo->selectedRegion;
mTrackArtist->pSelectedRegion = &sr;
mTrackArtist->pZoomInfo = mViewInfo;
TrackPanelDrawingContext context {
*dc, Target(), mLastMouseState, mTrackArtist.get()