From 93f72baea48a07a5d56a42f7dbc8a00af1464041 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 6 Nov 2006 09:09:32 +0000 Subject: [PATCH] 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 --- src/msw/graphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- 2.50.0