X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4f9074f498f07afc12d13ee4e8a2a3b9d65b196..93f72baea48a07a5d56a42f7dbc8a00af1464041:/src/msw/graphics.cpp 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 )