1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-08 23:24:19 +00:00

Component: Prevent unnecessary image clearing in createComponentSnapshot

This commit is contained in:
Anthony Nicholls 2025-11-05 13:06:52 +00:00 committed by Anthony Nicholls
parent cea19a9d12
commit 2efd3e0661

View file

@ -1986,7 +1986,7 @@ Image Component::createComponentSnapshot (Rectangle<int> areaToGrab,
auto w = roundToInt (scaleFactor * (float) r.getWidth());
auto h = roundToInt (scaleFactor * (float) r.getHeight());
Image image (flags.opaqueFlag ? Image::RGB : Image::ARGB, w, h, true, imageType);
Image image (flags.opaqueFlag ? Image::RGB : Image::ARGB, w, h, ! flags.opaqueFlag, imageType);
Graphics g (image);