Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Nov 25, 2024
1 parent f7c94e8 commit 7c3a514
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/scxt-wireframes/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct MainWindow : public juce::Component
sample->setBounds(mainRect.withHeight(wavHeight));

auto fxRect = mainRect.withTrimmedTop(wavHeight).withHeight(fxHeight);
auto fw = fxRect.getWidth() * 0.25;
auto fw = fxRect.getWidth() * 0.25f;
auto tfr = fxRect.withWidth(fw);
for (int i = 0; i < 4; ++i)
{
Expand All @@ -109,14 +109,14 @@ struct MainWindow : public juce::Component
}

auto modRect = mainRect.withTrimmedTop(wavHeight + fxHeight).withHeight(modHeight);
auto mw = modRect.getWidth() * 0.750;
auto mw = modRect.getWidth() * 0.750f;
mod->setBounds(modRect.withWidth(mw));
auto xw = modRect.getWidth() * 0.250;
auto xw = modRect.getWidth() * 0.250f;
mix->setBounds(modRect.withWidth(xw).translated(mw, 0));

auto envRect =
mainRect.withTrimmedTop(wavHeight + fxHeight + modHeight).withHeight(envHeight);
auto ew = envRect.getWidth() * 0.25;
auto ew = envRect.getWidth() * 0.25f;
eg[0]->setBounds(envRect.withWidth(ew));
eg[1]->setBounds(envRect.withWidth(ew).translated(ew, 0));
lfo->setBounds(envRect.withWidth(ew * 2).translated(ew * 2, 0));
Expand Down

0 comments on commit 7c3a514

Please sign in to comment.