| 54 | } |
| 55 | |
| 56 | void SpectrumBackground::resized() |
| 57 | { |
| 58 | // First, get the scale factor from the parent editor, as before. |
| 59 | if (auto* editor = findParentComponentOfClass<juce::AudioProcessorEditor>()) |
| 60 | if (auto* lnf = dynamic_cast<FireLookAndFeel*>(&editor->getLookAndFeel())) |
| 61 | scale = lnf->scale; |
| 62 | |
| 63 | // Now, trigger the regeneration of the background image. |
| 64 | // The resize itself will cause a repaint, which will then draw the new image. |
| 65 | createBackgroundImage(); |
| 66 | } |
| 67 | |
| 68 | void SpectrumBackground::createBackgroundImage() |
| 69 | { |
nothing calls this directly
no outgoing calls
no test coverage detected