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:
parent
942af1f022
commit
fb43fbb37f
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue