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
@@ -26,8 +26,6 @@ static int g_fail = 0;
#define CHECK(cond) do { if(!(cond)) { \
std::printf("FAIL line %d: %s\n", __LINE__, #cond); ++g_fail; } } while(0)
// buildEnvelopePolyline takes the overlay type, not a bare Rect (the distinct-type
// enforcement in editor_geometry.h) — this wraps a plain test Rect for it.
static OverlayArea overlayOf(const Rect& r) { return OverlayArea{r}; }
// A comfortable overlay area: 1000px wide, 100px tall, offset so left/top != 0 (catches origin