git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41897
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
delete dc->m_graphicContext ;
dc->m_graphicContext = new wxMacCGContext( m_overlayContext );
{
delete dc->m_graphicContext ;
dc->m_graphicContext = new wxMacCGContext( m_overlayContext );
+ // we are right now startin at 0,0 not at the wxWindow's origin, so most of the calculations
+ // int dc are already corect
+ // just to make sure :
dc->m_macLocalOrigin.x = 0 ;
dc->m_macLocalOrigin.y = 0 ;
dc->m_macLocalOrigin.x = 0 ;
dc->m_macLocalOrigin.y = 0 ;
+ wxSize size = m_window->GetSize() ;
+ dc->SetClippingRegion( 0 , 0 , size.x , size.y ) ;
}
void wxOverlayImpl::EndDrawing( wxWindowDC* dc)
}
void wxOverlayImpl::EndDrawing( wxWindowDC* dc)