From 03db8d15c6aff9b48690c981818d93d9355a404a Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Wed, 6 Feb 2019 12:56:05 +0000 Subject: [PATCH] Fixed a bug in DropShadow::drawForRectangle --- modules/juce_graphics/effects/juce_DropShadowEffect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_graphics/effects/juce_DropShadowEffect.cpp b/modules/juce_graphics/effects/juce_DropShadowEffect.cpp index 6ea68dd38f..1b5491b7ea 100644 --- a/modules/juce_graphics/effects/juce_DropShadowEffect.cpp +++ b/modules/juce_graphics/effects/juce_DropShadowEffect.cpp @@ -134,7 +134,7 @@ void DropShadow::drawForRectangle (Graphics& g, const Rectangle& 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; auto area = targetArea.toFloat().reduced (radiusInset) + offset.toFloat();