feat: a repaired hole keeps a fainter band, so a report is not a false accusation

This commit is contained in:
Martino Ferrari committed 2026-10-08 23:00:22 +02:00
1 parent 4666b807fc
commit 3859d2ca79
5 files changed
+48 -11

No files matched your search

+3 -1
View File
@@ -377,7 +377,9 @@ void RowSet::set_invalid_spans(ScopeModel& model, DisplayMode mode) {
// `Hole::x_begin`/`x_end` are stream seconds; the plots' x is `stream_t + epoch`.
const f64 epoch = model.display_epoch();
for (const Hole& h : model.holes()) {
spans_.emplace_back(h.x_begin + epoch, h.x_end + epoch);
// `repaired()` and not a second list: the band keeps reporting a repaired hole, in the
// fainter tint, until its slots age out of the ring and `forget_holes_before()` drops it.
spans_.push_back(plot::InvalidSpan{h.x_begin + epoch, h.x_end + epoch, h.repaired()});
}
}
for (int i = 0; i < rows_; ++i) {