- CGContextRef cgContext = ((wxCairoContext*)(m_graphicContext))->GetNativeContext();
- CGRect clipRect = CGRectMake( xx , yy , ww, hh );
- CGContextClipToRect( cgContext , clipRect );
-
- // SetRectRgn( (RgnHandle) m_macCurrentClipRgn , xx , yy , xx + ww , yy + hh );
- // SectRgn( (RgnHandle) m_macCurrentClipRgn , (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn );
-
+ m_graphicContext->Clip( xx, yy, ww, hh );