Cut core/ui and core/audio comment bloat ~60% (comments only, zero code change)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// overflow_menu — pure implementation. See overflow_menu.h. NO REAPER / SWELL / LICE / vendor.
|
||||
// overflow_menu — pure implementation. See overflow_menu.h.
|
||||
|
||||
#include "core/ui/overflow_menu.h"
|
||||
|
||||
@@ -6,8 +6,7 @@ namespace reasampler::ui {
|
||||
|
||||
int menuButtonReserve(const MenuBarRect& bar, const MenuButtonSpec& spec) {
|
||||
if (bar.width <= 0 || bar.height <= 0 || spec.buttonWidth <= 0) return 0;
|
||||
// The reserve is the button width plus a right gap (rightInset) and a matching left gap
|
||||
// (also rightInset) so the frequent buttons have breathing room before the menu button.
|
||||
// Button width plus a right gap and a matching left gap for breathing room.
|
||||
return spec.buttonWidth + 2 * spec.rightInset;
|
||||
}
|
||||
|
||||
@@ -21,7 +20,7 @@ MenuButtonRect computeMenuButton(const MenuBarRect& bar, const MenuButtonSpec& s
|
||||
|
||||
int top = bar.y + spec.verticalInset;
|
||||
int height = bar.height - 2 * spec.verticalInset;
|
||||
if (height <= 0) { // thin band: clamp to the band's own extents rather than go negative
|
||||
if (height <= 0) {
|
||||
top = bar.y;
|
||||
height = bar.height;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user