mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
macOS: Prevent an image mask from filling outside the clipping bounds
This commit is contained in:
parent
191dfe2e19
commit
514ac22d6d
1 changed files with 1 additions and 0 deletions
|
|
@ -384,6 +384,7 @@ void CoreGraphicsContext::clipToImageAlpha (const Image& sourceImage, const Affi
|
|||
|
||||
auto r = convertToCGRect (sourceImage.getBounds());
|
||||
CGContextClipToMask (context.get(), r, image.get());
|
||||
CGContextClipToRect (context.get(), r);
|
||||
|
||||
applyTransform (t.inverted());
|
||||
flip();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue