1
0
Fork 0
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:
Anthony Nicholls 2024-08-21 14:37:31 +01:00
parent 191dfe2e19
commit 514ac22d6d

View file

@ -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();