Fix waveform_view comment accuracy, cut duplicate comments, align xToFrame to OverlayArea

This commit is contained in:
2026-07-30 10:35:27 -04:00
parent fb12c53522
commit dfed1c77bb
5 changed files with 33 additions and 25 deletions
-2
View File
@@ -45,8 +45,6 @@ static bool findNode(const std::vector<EnvVertex>& poly, EnvNode node, EnvVertex
static Rect wideArea() { return Rect::ltrb(20, 10, 1020, 110); }
static constexpr double kTotal = 2.0;
// nodeAtPoint/resolveNodeDrag take the overlay type, not a bare Rect (the distinct-type
// enforcement in editor_geometry.h) — this wraps a plain test Rect for them.
static OverlayArea overlayOf(const Rect& r) { return OverlayArea{r}; }
static const double kGateSecPerPx = 1.0 / gatePxPerSecond(wideArea());