IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
+#ifndef wxMAC_USE_CORE_GRAPHICS_BLEND_MODES
+#define wxMAC_USE_CORE_GRAPHICS_BLEND_MODES 0
+#endif
+
//-----------------------------------------------------------------------------
// constants
//-----------------------------------------------------------------------------
return;
m_logicalFunction = function ;
+#if wxMAC_USE_CORE_GRAPHICS_BLEND_MODES
+ CGContextRef cgContext = ((wxMacCGContext*)(m_graphicContext))->GetNativeContext() ;
+ if ( m_logicalFunction == wxCOPY )
+ CGContextSetBlendMode( cgContext, kCGBlendModeNormal ) ;
+ else if ( m_logicalFunction == wxINVERT )
+ CGContextSetBlendMode( cgContext, kCGBlendModeExclusion ) ;
+ else
+ CGContextSetBlendMode( cgContext, kCGBlendModeNormal ) ;
+#endif
}
extern bool wxDoFloodFill(wxDC *dc, wxCoord x, wxCoord y,
{
wxCHECK_RET( Ok(), wxT("wxDC(cg)::DoDrawLine - invalid DC") );
+#if !wxMAC_USE_CORE_GRAPHICS_BLEND_MODES
if ( m_logicalFunction != wxCOPY )
return ;
+#endif
wxCoord xx1 = XLOG2DEVMAC(x1) ;
wxCoord yy1 = YLOG2DEVMAC(y1) ;
{
wxCHECK_RET( Ok(), wxT("wxDC(cg)::DoDrawLines - invalid DC") );
+#if !wxMAC_USE_CORE_GRAPHICS_BLEND_MODES
if ( m_logicalFunction != wxCOPY )
return ;
+#endif
wxCoord x1, x2 , y1 , y2 ;
x1 = XLOG2DEVMAC(points[0].x + xoffset);