mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Move height calculation utilities to class TrackView
This commit is contained in:
@@ -72,7 +72,8 @@ bool AudacityPrintout::OnPrintPage(int WXUNUSED(page))
|
||||
dc->GetSize(&width, &height);
|
||||
|
||||
int rulerScreenHeight = 40;
|
||||
int screenTotalHeight = mTracks->GetHeight() + rulerScreenHeight;
|
||||
int screenTotalHeight =
|
||||
TrackView::GetTotalHeight( *mTracks ) + rulerScreenHeight;
|
||||
|
||||
double scale = height / (double)screenTotalHeight;
|
||||
|
||||
|
Reference in New Issue
Block a user