From 7c3a5142b0e6b0b33de6f1a3146d92f3437f9534 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 25 Nov 2024 17:45:13 -0500 Subject: [PATCH] f --- examples/scxt-wireframes/MainWindow.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/scxt-wireframes/MainWindow.h b/examples/scxt-wireframes/MainWindow.h index b590ecf..ce45ccf 100644 --- a/examples/scxt-wireframes/MainWindow.h +++ b/examples/scxt-wireframes/MainWindow.h @@ -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) { @@ -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));