mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Rectangle passed VRuler draw function agrees with hit test rectangle...
... that is, it is one wider than before. But the drawing routine compensates to make the picture no different.
This commit is contained in:
@@ -1123,12 +1123,13 @@ void TrackPanel::DrawEverythingElse(TrackPanelDrawingContext &context,
|
||||
#endif
|
||||
|
||||
if (region.Contains(0, trackRect.y, GetLeftOffset(), trackRect.height)) {
|
||||
wxRect rect = trackRect;
|
||||
rect.x += GetVRulerOffset();
|
||||
rect.y += kTopMargin;
|
||||
rect.width = GetVRulerWidth();
|
||||
rect.height -= (kTopMargin + kBottomMargin);
|
||||
mTrackArtist->DrawVRuler(context, visibleT, rect, t->GetSelected());
|
||||
wxRect rect{
|
||||
GetVRulerOffset(),
|
||||
trackRect.y + kTopMargin,
|
||||
GetVRulerWidth() + 1,
|
||||
trackRect.height - kSeparatorThickness
|
||||
};
|
||||
mTrackArtist->DrawVRuler( context, visibleT, rect, t->GetSelected() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user