wxGraphicsContext always is using clipping regions in user coordinates
[wxWidgets.git] / src / msw / graphics.cpp
index a9d5c4c0651e07b414c6d944c82c61769d67cc8b..612e8e926d9eb748cd0a77298bf0ded98ad47146 100644 (file)
@@ -896,7 +896,8 @@ wxGDIPlusContext::~wxGDIPlusContext()
 
 void wxGDIPlusContext::Clip( const wxRegion &region )
 {
-    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 )