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:
parent
4ba01a80a0
commit
bd26d79b17
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue