setting clipping correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2006-10-10 13:57:19 +00:00
parent b72979e918
commit e69d5138dc

View File

@ -1349,8 +1349,13 @@ void wxOverlayImpl::BeginDrawing( wxWindowDC* dc)
{
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 ;
wxSize size = m_window->GetSize() ;
dc->SetClippingRegion( 0 , 0 , size.x , size.y ) ;
}
void wxOverlayImpl::EndDrawing( wxWindowDC* dc)