1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Move drawing of snap guidelines out of TrackPanel.cpp

This commit is contained in:
Paul Licameli
2017-06-10 20:48:02 -04:00
parent 198dbc4c2a
commit a3037b5734
3 changed files with 18 additions and 9 deletions

View File

@@ -408,3 +408,16 @@ bool SnapManager::Snap(Track *currentTrack,
return SNAP_OFF;
}
#include "AColor.h"
void SnapManager::Draw( wxDC *dc, wxInt64 left, wxInt64 right )
{
AColor::SnapGuidePen(dc);
if ( left >= 0 ) {
AColor::Line(*dc, (int)left, 0, (int)left, 30000);
}
if ( right >= 0 ) {
AColor::Line(*dc, (int)right, 0, (int)right, 30000);
}
}