Cut core/ui and core/audio comment bloat ~60% (comments only, zero code change)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// footer_bar — pure implementation. See footer_bar.h. NO REAPER / SWELL / LICE / vendor.
|
||||
// footer_bar — pure implementation. See footer_bar.h.
|
||||
|
||||
#include "core/ui/footer_bar.h"
|
||||
|
||||
@@ -6,8 +6,7 @@ namespace reasampler::ui {
|
||||
|
||||
namespace {
|
||||
|
||||
// True iff a box [x, x+width) fits entirely left of `rightBound` (its right edge does not
|
||||
// cross the reserved right region). A non-positive width never "fits" (nothing to place).
|
||||
// True iff a box [x, x+width) fits entirely left of `rightBound`.
|
||||
bool fitsLeftOf(int x, int width, int rightBound) {
|
||||
return width > 0 && x + width <= rightBound;
|
||||
}
|
||||
@@ -26,8 +25,7 @@ FooterBarLayout computeFooterBar(const FooterRect& footer, const FooterBarSpec&
|
||||
const int boxH = footer.height - 2 * spec.verticalInset;
|
||||
if (boxH <= 0) return out;
|
||||
|
||||
// The right bound the LEFT group must stay clear of (prune + version region). Clamp so a
|
||||
// pathologically large rightReserve never yields a negative bound.
|
||||
// Clamp so a pathologically large rightReserve never yields a negative bound.
|
||||
int rightBound = footer.x + footer.width - spec.rightReserve;
|
||||
if (rightBound < footer.x) rightBound = footer.x;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user