- if( bmCtx )
- {
- 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 ) ;
- }
- m_ok = (m_graphicContext != NULL) ;
-#else
- if ( ( m_macPort = m_selected.GetHBITMAP( &m_macMask ) ) != NULL )