Skip to content

Commit

Permalink
Optimisation: setPaintingIsUnclipped on MagicPlotComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
ffAudio committed May 9, 2020
1 parent e293035 commit dbfff85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions Widgets/foleys_MagicPlotComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ MagicPlotComponent::MagicPlotComponent()
setColour (plotInactiveFillColourId, juce::Colours::orange.darker().withAlpha (0.5f));

setOpaque (false);
}

MagicPlotComponent::~MagicPlotComponent()
{
setPaintingIsUnclipped (true);
}

void MagicPlotComponent::setPlotSource (MagicPlotSource* source)
Expand Down
1 change: 0 additions & 1 deletion Widgets/foleys_MagicPlotComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class MagicPlotComponent : public juce::Component
};

MagicPlotComponent();
~MagicPlotComponent();

void setPlotSource (MagicPlotSource* source);
void setDecayFactor (float decayFactor);
Expand Down

0 comments on commit dbfff85

Please sign in to comment.