Browse Source

Fixed a bug in DropShadow::drawForRectangle

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
03db8d15c6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_graphics/effects/juce_DropShadowEffect.cpp

+ 1
- 1
modules/juce_graphics/effects/juce_DropShadowEffect.cpp View File

@@ -134,7 +134,7 @@ 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;
auto area = targetArea.toFloat().reduced (radiusInset) + offset.toFloat();


Loading…
Cancel
Save