upgrade to JUCE 5.4.3. Remove (probably) unused JUCE modules. Remove VST2 target (it's been end-of-life'd by Steinberg and by JUCE)
This commit is contained in:
		@ -68,11 +68,6 @@ static void blurSingleChannelImage (Image& image, int radius)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//==============================================================================
 | 
			
		||||
DropShadow::DropShadow() noexcept
 | 
			
		||||
    : colour (0x90000000), radius (4)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
DropShadow::DropShadow (Colour shadowColour, const int r, Point<int> o) noexcept
 | 
			
		||||
    : colour (shadowColour), radius (r), offset (o)
 | 
			
		||||
{
 | 
			
		||||
@ -99,9 +94,9 @@ void DropShadow::drawForPath (Graphics& g, const Path& path) const
 | 
			
		||||
{
 | 
			
		||||
    jassert (radius > 0);
 | 
			
		||||
 | 
			
		||||
    const Rectangle<int> area ((path.getBounds().getSmallestIntegerContainer() + offset)
 | 
			
		||||
                                   .expanded (radius + 1)
 | 
			
		||||
                                   .getIntersection (g.getClipBounds().expanded (radius + 1)));
 | 
			
		||||
    auto area = (path.getBounds().getSmallestIntegerContainer() + offset)
 | 
			
		||||
                  .expanded (radius + 1)
 | 
			
		||||
                  .getIntersection (g.getClipBounds().expanded (radius + 1));
 | 
			
		||||
 | 
			
		||||
    if (area.getWidth() > 2 && area.getHeight() > 2)
 | 
			
		||||
    {
 | 
			
		||||
@ -139,14 +134,14 @@ void DropShadow::drawForRectangle (Graphics& g, const Rectangle<int>& targetArea
 | 
			
		||||
    for (float i = 0.05f; i < 1.0f; i += 0.1f)
 | 
			
		||||
        cg.addColour (1.0 - i, colour.withMultipliedAlpha (i * i));
 | 
			
		||||
 | 
			
		||||
    const float radiusInset = (radius + 1) / 2.0f;
 | 
			
		||||
    const float radiusInset = radius / 2.0f;
 | 
			
		||||
    const float expandedRadius = radius + radiusInset;
 | 
			
		||||
 | 
			
		||||
    const Rectangle<float> area (targetArea.toFloat().reduced (radiusInset) + offset.toFloat());
 | 
			
		||||
    auto area = targetArea.toFloat().reduced (radiusInset) + offset.toFloat();
 | 
			
		||||
 | 
			
		||||
    Rectangle<float> r (area.expanded (expandedRadius));
 | 
			
		||||
    Rectangle<float> top (r.removeFromTop (expandedRadius));
 | 
			
		||||
    Rectangle<float> bottom (r.removeFromBottom (expandedRadius));
 | 
			
		||||
    auto r = area.expanded (expandedRadius);
 | 
			
		||||
    auto top = r.removeFromTop (expandedRadius);
 | 
			
		||||
    auto bottom = r.removeFromBottom (expandedRadius);
 | 
			
		||||
 | 
			
		||||
    drawShadowSection (g, cg, top.removeFromLeft  (expandedRadius), true, 1.0f, 1.0f, 0, 1.0f);
 | 
			
		||||
    drawShadowSection (g, cg, top.removeFromRight (expandedRadius), true, 0, 1.0f, 1.0f, 1.0f);
 | 
			
		||||
 | 
			
		||||
@ -36,7 +36,7 @@ namespace juce
 | 
			
		||||
struct JUCE_API  DropShadow
 | 
			
		||||
{
 | 
			
		||||
    /** Creates a default drop-shadow effect. */
 | 
			
		||||
    DropShadow() noexcept;
 | 
			
		||||
    DropShadow() = default;
 | 
			
		||||
 | 
			
		||||
    /** Creates a drop-shadow object with the given parameters. */
 | 
			
		||||
    DropShadow (Colour shadowColour, int radius, Point<int> offset) noexcept;
 | 
			
		||||
@ -56,10 +56,10 @@ struct JUCE_API  DropShadow
 | 
			
		||||
        In most cases you'll probably want to leave this as black with an alpha
 | 
			
		||||
        value of around 0.5
 | 
			
		||||
    */
 | 
			
		||||
    Colour colour;
 | 
			
		||||
    Colour colour { 0x90000000 };
 | 
			
		||||
 | 
			
		||||
    /** The approximate spread of the shadow. */
 | 
			
		||||
    int radius;
 | 
			
		||||
    int radius { 4 };
 | 
			
		||||
 | 
			
		||||
    /** The offset of the shadow. */
 | 
			
		||||
    Point<int> offset;
 | 
			
		||||
@ -93,7 +93,7 @@ public:
 | 
			
		||||
    DropShadowEffect();
 | 
			
		||||
 | 
			
		||||
    /** Destructor. */
 | 
			
		||||
    ~DropShadowEffect();
 | 
			
		||||
    ~DropShadowEffect() override;
 | 
			
		||||
 | 
			
		||||
    //==============================================================================
 | 
			
		||||
    /** Sets up parameters affecting the shadow's appearance. */
 | 
			
		||||
 | 
			
		||||
@ -47,7 +47,7 @@ public:
 | 
			
		||||
    GlowEffect();
 | 
			
		||||
 | 
			
		||||
    /** Destructor. */
 | 
			
		||||
    ~GlowEffect();
 | 
			
		||||
    ~GlowEffect() override;
 | 
			
		||||
 | 
			
		||||
    //==============================================================================
 | 
			
		||||
    /** Sets the glow's radius and colour.
 | 
			
		||||
 | 
			
		||||
@ -65,7 +65,7 @@ public:
 | 
			
		||||
                              float alpha) = 0;
 | 
			
		||||
 | 
			
		||||
    /** Destructor. */
 | 
			
		||||
    virtual ~ImageEffectFilter() {}
 | 
			
		||||
    virtual ~ImageEffectFilter() = default;
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user