return true;
#if wxOSX_USE_COCOA_OR_CARBON
-#if 1 // MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
if ( UMAGetSystemVersion() < 0x1060 )
{
CGCompositeOperation cop = kCGCompositeOperationSourceOver;
case wxCOMPOSITION_XOR:
cop = kCGCompositeOperationXOR;
break;
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
case wxCOMPOSITION_ADD:
mode = kCGBlendModePlusLighter ;
break;
+#endif
default:
return false;
}
else
CGContextSetBlendMode(m_cgContext, mode);
}
- else
-#endif
#endif
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
+ else
{
CGBlendMode mode = kCGBlendModeNormal;
switch( op )
}
CGContextSetBlendMode(m_cgContext, mode);
}
+#endif
return true;
}