]> git.saurik.com Git - wxWidgets.git/commitdiff
Use kCGBlendModeExclusion for wxCOMPOSITION_XOR operation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Nov 2012 23:53:29 +0000 (23:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Nov 2012 23:53:29 +0000 (23:53 +0000)
The previously used kCGBlendModeXOR doesn't seem to be the right mode to use.

Closes #13095.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/graphics.cpp

index 053481f1ca91b340cafd904acfc2f8c785a0ad6d..c45b3f906606b355d91634c0ab3cc5a2c60b3d5e 100644 (file)
@@ -1919,7 +1919,7 @@ bool wxMacCoreGraphicsContext::SetCompositionMode(wxCompositionMode op)
            mode = kCGBlendModeDestinationAtop;
             break;
         case wxCOMPOSITION_XOR:
-            mode = kCGBlendModeXOR;
+            mode = kCGBlendModeExclusion; // Not kCGBlendModeXOR!
             break;
 
         case wxCOMPOSITION_ADD: