1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Effects: Use preferred temporary image type for DropShadow temporary image

Co-authored-by: Matt Gonzalez <matt@echoaudio.com>
This commit is contained in:
Oli 2025-04-15 13:31:45 +01:00
parent 4ba01a80a0
commit bd26d79b17

View file

@ -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);
{