From bd26d79b178441eaebc6a8577a112ce2d0081293 Mon Sep 17 00:00:00 2001 From: Oli Date: Tue, 15 Apr 2025 13:31:45 +0100 Subject: [PATCH] Effects: Use preferred temporary image type for DropShadow temporary image Co-authored-by: Matt Gonzalez --- modules/juce_graphics/effects/juce_DropShadowEffect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_graphics/effects/juce_DropShadowEffect.cpp b/modules/juce_graphics/effects/juce_DropShadowEffect.cpp index 6ee421f4e1..de9d63de3d 100644 --- a/modules/juce_graphics/effects/juce_DropShadowEffect.cpp +++ b/modules/juce_graphics/effects/juce_DropShadowEffect.cpp @@ -68,7 +68,8 @@ void DropShadow::drawForPath (Graphics& g, const Path& path) const if (area.getWidth() <= 2 || area.getHeight() <= 2) return; - Image pathImage { Image::SingleChannel, area.getWidth(), area.getHeight(), true }; + const auto tempImageType = g.getInternalContext().getPreferredImageTypeForTemporaryImages(); + Image pathImage { Image::SingleChannel, area.getWidth(), area.getHeight(), true, *tempImageType }; pathImage.setBackupEnabled (false); {