Skip to content

Commit

Permalink
Make it so we can compile with JUCE 801 or 802
Browse files Browse the repository at this point in the history
By using the macro we used in jucegui for stringwidth
  • Loading branch information
baconpaul committed Sep 30, 2024
1 parent 45cb8f2 commit 9209864
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9209864

Please sign in to comment.