From 92098648fd41638a28181037b03342867c181849 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 30 Sep 2024 10:36:33 -0400 Subject: [PATCH] Make it so we can compile with JUCE 801 or 802 By using the macro we used in jucegui for stringwidth --- .../app/edit-screen/components/mapping-pane/VariantDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/app/edit-screen/components/mapping-pane/VariantDisplay.cpp b/src-ui/app/edit-screen/components/mapping-pane/VariantDisplay.cpp index d4514913..13765e8f 100644 --- a/src-ui/app/edit-screen/components/mapping-pane/VariantDisplay.cpp +++ b/src-ui/app/edit-screen/components/mapping-pane/VariantDisplay.cpp @@ -931,7 +931,7 @@ void VariantDisplay::FileInfos::paint(juce::Graphics &g) int margin{5}; auto ft = editor->themeApplier.interMediumFor(12); - auto w = juce::GlyphArrangement::getStringWidth(ft, msg); + auto w = SST_STRING_WIDTH_FLOAT(ft, msg); auto bx = getLocalBounds().withWidth(w + 2 * margin).withHeight(18); g.setColour(editor->themeColor(theme::ColorMap::bg_3).withAlpha(0.5f)); g.fillRect(bx);