Re: [Audacity-devel] TrackPanel::OnSetDisplay
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Andrew H. <an...@sc...> - 2014-01-23 23:36:56
|
On 1/23/2014 3:18 PM, Andrew Hallendorff wrote: > Adding. Noticing that sometimes the partner track does not update when > zooming, the following code > > if (partner) > UpdateVRuler(partner); > > Needs to be added after > > UpdateVRuler(mCapturedTrack); > > at around line 3632 TrackPannel.cpp > > Andrew Hallendorff > Ok ignore (above) it is not the reason it isn't getting drawn. However. This seems to solve the problem. Replace this line 715 TrackArtist.cpp if (min > 0) { botval = -((1-min)*mdBrange); } if (topval > botval && bot > top+10) { vruler->SetBounds(r.x, r.y+top+1, r.x + r.width, r.y + bot-1); vruler->SetOrientation(wxVERTICAL); vruler->SetRange(topval, botval); vruler->SetFormat(Ruler::LinearDBFormat); vruler->SetLabelEdges(true); vruler->SetLog(false); } } With this if (min > 0) { botval = -((max-min)*mdBrange); } vruler->SetBounds(r.x, r.y+top+1, r.x + r.width, r.y + bot-1); vruler->SetOrientation(wxVERTICAL); vruler->SetRange(topval, botval); } else { vruler->SetBounds(0.0, 0.0, 0.0, 0.0); // A.C.H I couldn't find a way to just disable it? } vruler->SetFormat(Ruler::LinearDBFormat); vruler->SetLabelEdges(true); vruler->SetLog(false); Andrew Hallendorff |