]> git.saurik.com Git - wxWidgets.git/commitdiff
we must turn off AA for XOR etc.
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 3 Dec 2006 15:48:40 +0000 (15:48 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 3 Dec 2006 15:48:40 +0000 (15:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/graphics.cpp

index 7bc04419a16b364eadc0f64e3ff1e9fe73d5f6bf..8915a925fc214889109146da311ab24ca09a942d 100755 (executable)
@@ -1181,7 +1181,7 @@ public:
     virtual void DrawPath( const wxGraphicsPath &path, int fillStyle = wxODDEVEN_RULE );
 
     virtual bool ShouldOffset() const
-    {
+    {     
         int penwidth = 0 ;
         if ( !m_pen.IsNull() )
         {
@@ -1339,6 +1339,7 @@ bool wxMacCoreGraphicsContext::SetLogicalFunction( int function )
         if ( CGContextSetBlendMode != NULL )
         {
             CGContextSetBlendMode( m_cgContext, kCGBlendModeNormal );
+            CGContextSetShouldAntialias( m_cgContext, true );
         }
 #endif
     }
@@ -1349,6 +1350,7 @@ bool wxMacCoreGraphicsContext::SetLogicalFunction( int function )
         {
             // change color to white
             CGContextSetBlendMode( m_cgContext, kCGBlendModeExclusion );
+            CGContextSetShouldAntialias( m_cgContext, false );
             retval = true;
         }
 #endif