]> git.saurik.com Git - wxWidgets.git/commitdiff
wxGraphicsContext always is using clipping regions in user coordinates
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 6 Nov 2006 09:09:32 +0000 (09:09 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 6 Nov 2006 09:09:32 +0000 (09:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 )