From: Stefan Csomor Date: Mon, 6 Nov 2006 09:09:32 +0000 (+0000) Subject: wxGraphicsContext always is using clipping regions in user coordinates X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/93f72baea48a07a5d56a42f7dbc8a00af1464041 wxGraphicsContext always is using clipping regions in user coordinates git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index a9d5c4c065..612e8e926d 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -896,7 +896,8 @@ wxGDIPlusContext::~wxGDIPlusContext() void wxGDIPlusContext::Clip( const wxRegion ®ion ) { - m_context->SetClip((HRGN)region.GetHRGN(),CombineModeIntersect); + Region rgn((HRGN)region.GetHRGN()); + m_context->SetClip(&rgn,CombineModeIntersect); } void wxGDIPlusContext::Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h )