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