- CGContextSetFillColorSpace( bmCtx, genericColorSpace );
- CGContextSetStrokeColorSpace( bmCtx, genericColorSpace );
-
- CGContextTranslateCTM( bmCtx , 0 , m_selected.GetHeight() ) ;
- CGContextScaleCTM( bmCtx , 1 , -1 ) ;
-
- m_graphicContext = new wxMacCGContext( bmCtx ) ;
- m_graphicContext->SetPen( m_pen ) ;
- m_graphicContext->SetBrush( m_brush ) ;
+ CGContextSetFillColorSpace( bmCtx, genericColorSpace );
+ CGContextSetStrokeColorSpace( bmCtx, genericColorSpace );
+ SetGraphicsContext( wxGraphicsContext::CreateFromNative( bmCtx ) );