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

Fix for CoreGraphics clipping to zero-winding paths

This commit is contained in:
jules 2018-02-05 12:18:59 +00:00
parent 942af1f022
commit fb43fbb37f

View file

@ -274,7 +274,12 @@ void CoreGraphicsContext::excludeClipRectangle (const Rectangle<int>& r)
void CoreGraphicsContext::clipToPath (const Path& path, const AffineTransform& transform)
{
createPath (path, transform);
CGContextClip (context);
if (path.isUsingNonZeroWinding())
CGContextClip (context);
else
CGContextEOClip (context);
lastClipRectIsValid = false;
}