From e69d5138dc8f95e294ae6d03beb4f321406f4e34 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 10 Oct 2006 13:57:19 +0000 Subject: [PATCH] setting clipping correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcbase.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index d3218785be..0d8f069ea6 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -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) -- 2.45.2