X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/140f2027267dde85ee78eb4377fe0c40db66d251..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/carbon/graphics.cpp diff --git a/src/osx/carbon/graphics.cpp b/src/osx/carbon/graphics.cpp index 1c363dc431..98ce41f0d8 100644 --- a/src/osx/carbon/graphics.cpp +++ b/src/osx/carbon/graphics.cpp @@ -1698,7 +1698,6 @@ bool wxMacCoreGraphicsContext::SetCompositionMode(wxCompositionMode op) 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; @@ -1738,9 +1737,11 @@ bool wxMacCoreGraphicsContext::SetCompositionMode(wxCompositionMode op) 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; } @@ -1749,9 +1750,9 @@ bool wxMacCoreGraphicsContext::SetCompositionMode(wxCompositionMode op) 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 ) @@ -1798,6 +1799,7 @@ bool wxMacCoreGraphicsContext::SetCompositionMode(wxCompositionMode op) } CGContextSetBlendMode(m_cgContext, mode); } +#endif return true; }