mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Workaround for strange type layout bug in Windows 64.
This commit is contained in:
parent
9f52845c38
commit
2aa22684f3
2 changed files with 20 additions and 5 deletions
|
|
@ -1953,10 +1953,11 @@ Image Component::createComponentSnapshot (const Rectangle<int>& areaToGrab,
|
|||
if (clipImageToComponentBounds)
|
||||
r = r.getIntersection (getLocalBounds());
|
||||
|
||||
if (r.isEmpty())
|
||||
return Image();
|
||||
|
||||
Image componentImage (flags.opaqueFlag ? Image::RGB : Image::ARGB,
|
||||
jmax (1, r.getWidth()),
|
||||
jmax (1, r.getHeight()),
|
||||
true);
|
||||
r.getWidth(), r.getHeight(), true);
|
||||
|
||||
Graphics imageContext (componentImage);
|
||||
imageContext.setOrigin (-r.getX(), -r.getY());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue