we must turn off AA for XOR etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1339,6 +1339,7 @@ bool wxMacCoreGraphicsContext::SetLogicalFunction( int function )
|
|||||||
if ( CGContextSetBlendMode != NULL )
|
if ( CGContextSetBlendMode != NULL )
|
||||||
{
|
{
|
||||||
CGContextSetBlendMode( m_cgContext, kCGBlendModeNormal );
|
CGContextSetBlendMode( m_cgContext, kCGBlendModeNormal );
|
||||||
|
CGContextSetShouldAntialias( m_cgContext, true );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -1349,6 +1350,7 @@ bool wxMacCoreGraphicsContext::SetLogicalFunction( int function )
|
|||||||
{
|
{
|
||||||
// change color to white
|
// change color to white
|
||||||
CGContextSetBlendMode( m_cgContext, kCGBlendModeExclusion );
|
CGContextSetBlendMode( m_cgContext, kCGBlendModeExclusion );
|
||||||
|
CGContextSetShouldAntialias( m_cgContext, false );
|
||||||
retval = true;
|
retval = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user